A newer version of this page is available. Switch to the current version.

Collection<T>.CopyTo(T[], Int32) Method

Copies the items from the collection to the specified array, starting at the specified index in the array object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public void CopyTo(
    T[] array,
    int index
Public Sub CopyTo(
    array As T(),
    index As Integer


Name Type Description
array T[]

A zero-based System.Array object that receives the copied items from the Collection<T> collection.

index Int32

The first position in the specified System.Array object to receive the copied contents.


Use this method to copy the contents of the Collection<T> into the specified System.Array object, starting at the specified index.


The array parameter must be a zero-based System.Array object.


See Also