Join()

String::Join(const String&, const ArrayPtr<String>&, int, int) method

Joins array using string as separator.

static String System::String::Join(const String &separator, const ArrayPtr<String> &parts, int startIndex=0, int count=-1)

Arguments

ParameterTypeDescription
separatorconst String&String to put between array elements when joining them.
partsconst ArrayPtr<String>&Array of parts to join.
startIndexintFirst index in array to start joining from.
countintNumber of array elements to join. -1 means ‘until array ends’.

Return Value

String representing joint array elements.

String::Join(const String&, const System::Details::ArrayView<String>&, int, int) method

Joins array using string as separator.

static String System::String::Join(const String &separator, const System::Details::ArrayView<String> &parts, int startIndex=0, int count=-1)

Arguments

ParameterTypeDescription
separatorconst String&String to put between array elements when joining them.
partsconst System::Details::ArrayView<String>&ArrayView of parts to join.
startIndexintFirst index in array to start joining from.
countintNumber of array elements to join. -1 means ‘until array ends’.

Return Value

String representing joint array elements.

String::Join(const String&, const SharedPtr<System::Collections::Generic::IEnumerable<String>>&) method

Joins array using string as separator.

static String System::String::Join(const String &separator, const SharedPtr<System::Collections::Generic::IEnumerable<String>> &parts)

Arguments

ParameterTypeDescription
separatorconst String&String to put between array elements when joining them.
partsconst SharedPtr<System::Collections::Generic::IEnumerable<String>>&- parts enumerable object

Return Value

String representing joint elements.

String::Join(const String&, const ArrayPtr<SharedPtr<Object>>&) method

Joins array using string as separator.

static String System::String::Join(const String &separator, const ArrayPtr<SharedPtr<Object>> &parts)

Arguments

ParameterTypeDescription
separatorconst String&String to put between array elements when joining them.
partsconst ArrayPtr<SharedPtr<Object>>&Array of parts to join.

Return Value

String representing joint elements.

See Also