Copies the entire LinkedList to a compatible one-dimensional Array, starting at the specified index of the target array.
[Visual Basic]
Overrides Public Sub CopyTo( _
ByVal array As Array, _
ByVal index As Integer _
) Implements _
ICollection.CopyTo
Exception Type | Condition |
---|---|
System.ArgumentNullException |
The array is a null reference (Nothing in Visual Basic).
|
System.ArgumentOutOfRangeException | The index is less than zero. |
System.ArgumentException |
The array is multidimensional.
-or- The index is equal to or greater than the length of array.-or- The number of elements in the LinkedList is greater than the available space from index to the end of the destination array. |
LinkedList Class | LinkedList Members | Foley.Utilities.Collections Namespace