Click or drag to resize
StringJoin Method (String, Object)
Concatenates the elements of an object array, using the specified separator between each element.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static string Join(
	string separator,
	params Object[] values
)

Parameters

separator
Type: SystemString
The string to use as a separator.
values
Type: SystemObject
An array that contains the elements to concatenate.

Return Value

Type: String
A string that consists of the elements of values delimited by the separator string. If values is an empty array, the method returns Empty.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalues is null.
See Also