Since C# 6.0
suggest changeSince 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: http://stackoverflow.com/documentation/c%23/24/c-sharp-6-0-features/49/string-interpolation#t=201607220912379524818.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents