Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

LinkedList.CopyTo Method

Copies the elements in this list to an array.

[Visual Basic]
Public NotOverridable Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) _
    Implements ICollection.CopyTo
[C#]
public void CopyTo(
   Array array,
   int index
);

Parameters

array
An array that will be the target of the copy operation.
index
The zero-based index where copying will start.

Implements

ICollection.CopyTo

Remarks

The type of array needs to be compatible with the objects in this list, obviously.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied array is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException If the supplied index is less than zero or is greater than the length of array.
ArgumentException If the supplied array is of insufficient size.

See Also

LinkedList Class | Spring.Collections Namespace