StringJoinT Method (String, IEnumerableT) |
Concatenates the members of a collection, using the specified separator between each member.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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:
StringA string that consists of the members of
values delimited by the
separator string. If
values has no members, the method returns
Empty.
Exceptions See Also