String.Join Method (String, String, Int32, Int32)
Concatenates the specified elements of a string array, using the specified separator between each element.
Assembly: mscorlib (in mscorlib.dll)
static member Join : separator:string * value:string * startIndex:int * count:int -> string
The string to use as a separator. separator is included in the returned string only if value has more than one element.
An array that contains the elements to concatenate.
The first element in value to use.
The number of elements of value to use.
For example, if separator is ", " and the elements of value are "apple", "orange", "grape", and "pear", Join(separator, value, 1, 2) returns "orange, grape".
If separator is null, an empty string (String.Empty) is used instead. If any element in value is null, an empty string is used instead.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1