System::Collections::CollectionBase::ListImpl::CopyTo method

ListImpl::CopyTo method

Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

void System::Collections::CollectionBase<T>::ListImpl::CopyTo(const ArrayPtr<T> &array, int32_t index)
ParameterTypeDescription
arrayconst ArrayPtr<T>&The one-dimensional Array that is the destination of the elements copied from the collection. The Array must have zero-based indexing.
indexint32_tThe zero-based index in array at which copying begins.

See Also