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)
매개변수형식설명
indexint현재 객체가 나타내는 리스트에서 복사를 시작할 요소의 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
매개변수형식설명
arraySystem::ArrayPtr<T>대상 배열.
arrayIndexint대상 배열 시작 인덱스.

또 보기