how to concatenate if string in c# code example
Example 1: c# string concatenation
string userName = "<Type your name here>";
string dateString = DateTime.Today.ToShortDateString();
// Use the + and += operators for one-time concatenations.
string str = "Hello " + userName + ". Today is " + dateString + ".";
System.Console.WriteLine(str);
str += " How are you today?";
System.Console.WriteLine(str);
Example 2: c# concatenate strings
Console.WriteLine ("text"+Var);