Since C# 6.0

suggest change

Since C# 6.0 it is possible to use string interpolation in place of String.Format.

string name = "John";
string lastname = "Doe";
Console.WriteLine($"Hello {name} {lastname}!");
Hello John Doe!

More examples for this under the topic C# 6.0 features:

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents