Click or drag to resize
StringJoinT Method (String, IEnumerableT)
Concatenates the members of a collection, using the specified separator between each member.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static string Join<T>(
	string separator,
	IEnumerable<T> values
)

Parameters

separator
Type: SystemString
The string to use as a separator.
values
Type: System.Collections.GenericIEnumerableT
A collection that contains the objects to concatenate.

Type Parameters

T
The type of the members of values.

Return Value

Type: String
A string that consists of the members of values delimited by the separator string. If values has no members, the method returns Empty.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalues is null.
See Also