Bridge

String..::..Join Method (String, array<String>[]()[][], Int32, Int32)

Concatenates the specified elements of a string array, using the specified separator between each element.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public static string Join(
	string separator,
	string[] args,
	int startIndex,
	int count
)
<TemplateAttribute> _
Public Shared Function Join ( _
	separator As String, _
	args As String(), _
	startIndex As Integer, _
	count As Integer _
) As String
[TemplateAttribute]
public:
static String^ Join(
	String^ separator, 
	array<String^>^ args, 
	int^ startIndex, 
	int^ count
)

Parameters

separator
Type: System..::..String
The string to use as a separator. separator is included in the returned string only if value has more than one element.
args
Type: array<System..::..String>[]()[][]
startIndex
Type: System..::..Int32
The first element in value to use.
count
Type: System..::..Int32
The number of elements of value to use.

Return Value

A string that consists of the strings in value delimited by the separator string. -or-Empty if count is zero, value has no elements, or separator and all the elements of value are Empty.

Exceptions


ExceptionCondition
System..::..ArgumentNullExceptionvalue is null.
System..::..ArgumentOutOfRangeExceptionstartIndex or count is less than 0.-or- startIndex plus count is greater than the number of elements in value.
System..::..OutOfMemoryExceptionOut of memory.