var y = "WHY?"; IDictionary x = new Dictionary { { $"key-{y}", "value" } }; IDictionary z = new Dictionary { { y, true } };