Mega Code Archive

 
Categories / C# Book / 02 Essential Types
 

0246 Concatenate strings

Concat method accepts the params string array and append them together. using System; class Sample { public static void Main() { string s = string.Concat("rnt", "soft", ".com"); Console.WriteLine(s); } } The output: rntsoft.com