Append strings using Concat() : String Concat « String « C# / CSharp Tutorial






using System; 
 
class MainClass { 
  public static void Main() { 
 
    string result = String.Concat("This ", "is ", "a ", 
                                  "test ","."); 
 
    Console.WriteLine("result: " + result); 
 
  } 
}
result: This is a test .








5.8.String Concat
5.8.1.Append strings using Concat()
5.8.2.Concatenate string with integers
5.8.3.Mix string and integer in string cancatenation
5.8.4.Concatenate string with non-strings
5.8.5.String concatenation
5.8.6.Concat method with a String array.