Essential C# String Format  Suggest an edit

Since C# 6.0

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:

Table Of Contents
12 String Format
22 Enum
107 Stream
108 Timers
  ↑ ↓ to navigate     ↵ to select     Esc to close