Assembly: System (in System.dll)
- Type: T
The one-dimensional Array that is the destination of the elements copied from LinkedList<T>. The Array must have zero-based indexing.
- Type: System.Int32
The zero-based index in array at which copying begins.
The following code example and output demonstrate the method. The code example creates an array the same size as the linked list, and uses the method to copy the values of all the nodes to the string array, beginning at element 0 of the array. The code example then clears the array.
This code and output are part of a larger example provided for the LinkedList<T> class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2