C# mstring code example
Example 1: c# write variable in string
int age = 22;
Console.WriteLine($"Age: {age}");
Example 2: c# string methods
string string1 = "Today is " + DateTime.Now.ToString("D") + ".";
Console.WriteLine(string1);
string string2 = "This is one sentence. " + "This is a second. ";
string2 += "This is a third sentence.";
Console.WriteLine(string2);