The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
List<T>::CopyTo Method
.NET Framework (current version)
Copies the List<T> or a portion of it to an array.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | CopyTo(array<T>^) | Copies the entire List<T> to a compatible one-dimensional array, starting at the beginning of the target array. |
![]() | CopyTo(array<T>^, Int32) | Copies the entire List<T> to a compatible one-dimensional array, starting at the specified index of the target array. |
![]() | CopyTo(Int32, array<T>^, Int32, Int32) | Copies a range of elements from the List<T> to a compatible one-dimensional array, starting at the specified index of the target array. |
Show:
