Concatenates the string representations of the elements in a specified object array.
![]()
The concatenated string representations of the values of the elements in args.
Type Reason ArgumentNullException args is a null reference.
The method concatenates each object in args by calling the parameterless ToString method of that object; it does not add any delimiters.
string.Empty is used in place of any null object in the array.
The following example demonstrates concatenating an array of objects.
C# Example
using System;
public class StringConcatExample {
public static void Main() {
string str = String.Concat( 'c', 32, "String" );
Console.WriteLine( "The concatenated Object array is: {0}", str );
}
}
The output is
The concatenated Object array is: c32String