This documentation is archived and is not being maintained.

List.CopyTo Method

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

Name Description
List.CopyTo (T[]) Copies the entire List to a compatible one-dimensional array, starting at the beginning of the target array.

Supported by the .NET Compact Framework.

List.CopyTo (T[], Int32) Copies the entire List to a compatible one-dimensional array, starting at the specified index of the target array.

Supported by the .NET Compact Framework.

List.CopyTo (Int32, T[], Int32, Int32) Copies a range of elements from the List to a compatible one-dimensional array, starting at the specified index of the target array.

Supported by the .NET Compact Framework.

Show: