A collection of programming & webdesign
C# Printing Strings

There are three ways of printing strings in C#:

  1. The “classic” way:
    Console.WriteLine("Hello " + world);
  2. Using a placeholder:
    Console.WriteLine("Hello {0}", world);
  3. Using $:
    Console.WriteLine($"Hello {world}, today is {date_time}");