Concatenate more than two strings in CSharp
Description
The following code shows how to concatenate more than two strings.
Example
/*from www. j a va2 s . c om*/
using System;
public class ConcatDemo1 {
public static void Main() {
string result = String.Concat("This ", "is ", "a ",
"test ", "of ", "the ",
"String ", "class.");
Console.WriteLine("result: " + result);
}
}
The code above generates the following result.