String Interpolation

Building a string by placing expressions inside braces in a string beginning with $.

What is String Interpolation in C#?

String Interpolation — Building a string by placing expressions inside braces in a string beginning with $.

class Order
{
    string Describe(string item, int count)
    {
        return quot;{count} cups of {item}";
    }
}

Level: Apprentice · More C# terms at this level

Updated

In other subjects