[]
Copies the collection objects to a one-dimensional Array instance beginning at the specified index.
public void CopyTo(T[] array, int index)
Public Sub CopyTo(array As T(), index As Integer)
Type | Name | Description |
---|---|---|
T[] | array | The one-dimensional Array that is the destination of the values copied from the collection. |
int | index | The index of the array at which to begin inserting. |
Type | Condition |
---|---|
ArgumentNullException | The array parameter is null. |
ArgumentOutOfRangeException | The index parameter is less than the target array's minimum index. |
ArgumentException | The destination array is multidimensional.-or- The number of elements in the Collection |