Copies a snapshot of the collection to an array.
Namespace:
Tortuga.Anchor.Collections
Assembly:
Tortuga.Anchor (in Tortuga.Anchor.dll)
public void CopyTo(
T[] array,
int arrayIndex
)
Public Sub CopyTo ( _
array As T(), _
arrayIndex As Integer _
)
Parameters
- array
- Type: array<T>[]()[][]
The one-dimensional [Array] that is the destination of the elements copied from [ICollection{T}]. The [Array] must have zero-based indexing.
- arrayIndex
- Type: Int32
The zero-based index in array at which copying begins.
| Exception | Condition |
|---|
| [ArgumentNullException] | array - array is null |
| [ArgumentOutOfRangeException] |
arrayIndex
or
arrayIndex
|
| [ArgumentException] | array |