StringJoin Method (String, IEnumerableString) |
Concatenates the members of a constructed
IEnumerableT collection of type
String, using the specified separator between each member.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static string Join(
string separator,
IEnumerable<string> values
)
Parameters
- separator
- Type: SystemString
The string to use as a separator. - values
- Type: System.Collections.GenericIEnumerableString
A collection that contains the strings to concatenate.
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