System::Collections::Generic::List::CopyTo-Methode

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

Kopiert alle Elemente in vorhandene Array-Elemente.

void System::Collections::Generic::List<T>::CopyTo(const System::ArrayPtr<T> &array)
ParameterTypBeschreibung
arrayconst System::ArrayPtr<T>&Array zum Kopieren der Elemente.

Siehe auch

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

Kopiert Elemente beginnend ab dem angegebenen Index in vorhandene Array-Elemente.

void System::Collections::Generic::List<T>::CopyTo(int index, const System::ArrayPtr<T> &array, int arrayIndex, int count)
ParameterTypBeschreibung
IndexintEin nullbasierter Index des Elements in der von dem aktuellen Objekt dargestellten Liste, ab dem das Kopieren beginnen soll
arrayconst System::ArrayPtr<T>&Array zum Kopieren der Elemente.
arrayIndexintAnfangsposition im Zielarray.
countintAnzahl der zu kopierenden Elemente.

Siehe auch

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

Kopiert Listenelemente in vorhandene Array-Elemente.

void System::Collections::Generic::List<T>::CopyTo(System::ArrayPtr<T> array, int arrayIndex) override
ParameterTypBeschreibung
ArraySystem::ArrayPtr<T>Ziel-Array.
arrayIndexintStartindex des Zielarrays.

Siehe auch