System::Collections::Generic::List::CopyTo メソッド

List::CopyTo(const System::ArrayPtr<T>&) method

すべての要素を既存の配列要素にコピーします。

void System::Collections::Generic::List<T>::CopyTo(const System::ArrayPtr<T> &array)
パラメーター説明
arrayconst System::ArrayPtr<T>&Array に要素をコピーします。

参照

List::CopyTo(int, const System::ArrayPtr<T>&, int, int) method

指定されたインデックスから始まる要素を既存の配列要素にコピーします。

void System::Collections::Generic::List<T>::CopyTo(int index, const System::ArrayPtr<T> &array, int arrayIndex, int count)
パラメーター説明
インデックスint現在のオブジェクトが表すリスト内の要素の、コピー開始位置を示す 0 ベースのインデックス
arrayconst System::ArrayPtr<T>&Array に要素をコピーします。
arrayIndexint宛先配列の開始位置。
countintコピーする要素数。

参照

List::CopyTo(System::ArrayPtr<T>, int) method

リスト要素を既存の配列要素にコピーします。

void System::Collections::Generic::List<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex) override
パラメーター説明
配列System::ArrayPtr<T>宛先配列。
arrayIndexint宛先配列の開始インデックス。

参照