ArrayListCopyTo Method (Array) |
Namespace: System.Collections
public virtual void CopyTo( Array array )
Exception | Condition |
---|---|
ArgumentNullException | array is null. |
ArgumentException | array is multidimensional.-or- The number of elements in the source ArrayList is greater than the number of elements that the destination array can contain. |
InvalidCastException | The type of the source ArrayList cannot be cast automatically to the type of the destination array. |