System.String.Concat Method

Concatenates the string representations of four specified objects and any objects specified in an optional variable length parameter list.

Syntax

[System.CLSCompliant(false)]
public static string Concat (object arg0, object arg1, object arg2, object arg3)

Parameters

arg0
The first object to concatenate.
arg1
The second object to concatenate.
arg2
The third object to concatenate.
arg3
The fourth object to concatenate.

Returns

The concatenated string representation of each value in the parameter list.

Remarks

The method concatenates each object in the parameter list by calling its parameterless ToString method; it does not add any delimiters.

string.Empty is used in place of any null argument.

Note:

The last parameter of the string.Concat(object, object, object, object) method is an optional comma-delimited list of one or more additional objects to concatenate.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0