Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array.
- array
- The one-dimensional Array that is the destination of the elements copied from the current collection. The array must have zero-based indexing.
- index
- The zero-based index in array at which copying begins.
The type of the specified array must be compatible with the source collection.
This method uses the Array.Copy(Array, Array, int) method to copy the elements.