List<T>.CopyTo Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Copies the List<T> or a portion of it to an array.

Namespace:   System.Collections.Generic
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodCopyTo(T[])

Copies the entire List<T> to a compatible one-dimensional array, starting at the beginning of the target array.

System_CAPS_pubmethodCopyTo(T[], Int32)

Copies the entire List<T> to a compatible one-dimensional array, starting at the specified index of the target array.

System_CAPS_pubmethodCopyTo(Int32, 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.

Return to top
Show: