![]()
The concatenated string representations of the values of arg0 and arg1.
The method concatenates arg0 and arg1by calling the parameterless ToString method of arg0 and arg1; it does not add any delimiters.
string.Empty is used in place of any null argument.
If either of the arguments is an array reference, the method concatenates a string representing that array, instead of its members (for example, "System.String[]").
The following example demonstrates concatenating two objects.
C# Example
using System;
public class StringConcatExample {
public static void Main() {
string str = String.Concat( 'c', 32 );
Console.WriteLine( "The concatenated Objects are: {0}", str );
}
}
The output is
The concatenated Objects are: c32