CopyTo()

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

Copies string characters into existing array elements. No resize is being done.

void System::String::CopyTo(int sourceIndex, const ArrayPtr<char_t> &destination, int destinationIndex, int count) const

Arguments

ParameterTypeDescription
sourceIndexintIn-string index to start reading from.
destinationconst ArrayPtr<char_t>&Destination array.
destinationIndexintIn-array index to start writing from.
countintNumber of characters to copy.

See Also