ToCharArray()

String::ToCharArray(int32_t, int32_t) const method

Converts string or substring to array of characters.

ArrayPtr<char_t> System::String::ToCharArray(int32_t startIndex=0, int32_t length=INT32_MAX) const

Arguments

ParameterTypeDescription
startIndexint32_tSubstring start index.
lengthint32_tSubstring length.

Return Value

Array containing characters of the string.

See Also