Concatenates three specified instances of string.
![]()
The concatenation of str0, str1, and str2.
The method concatenates str0, str1, and str2; it does not add any delimiters.
An string.Empty string is used in place of any null argument.
The following example demonstrates concatenating three strings.
C# Example
using System;
public class StringConcatExample {
public static void Main() {
string str = String.Concat( "one", "two", "three" );
Console.WriteLine( "The concatenated strings are: {0}", str );
}
}
The output is
The concatenated strings are: onetwothree