System::String::CopyTo method

String::CopyTo 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
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