Copies the elements of the current collection to a Array, starting at the specified index.
- array
- A one-dimensional, zero-based Array that is the destination of the elements copied from the current instance.
- arrayIndex
- Documentation for this section has not yet been entered.
Type Reason ArgumentNullException array is null. ArgumentOutOfRangeException index < 0. ArgumentException array has more than one dimension.
-or-
index is greater than or equal to array.Length.
-or-
The sum of index and the ICollection.Count of the current instance is greater than array.Length.
-or-
Type T is not assignable to the element type of the destination array.
This operation overwrites the current contents of the array.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0