Formatting Strings using Templates in C#
Views: 1455
C# has a feature, String Interpolation, to format strings in a flexible and readable way. The following example demonstrates the way how we usually output a string when we have data beforehand then pass data to the template string. var name = "April"; var dob = new DateTime(2000, 4, 10);...