Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

CollectionBase<(Of <(<'T>)>)>..::..CopyTo Method

Copies all the items in the collection into an array. Implemented by using the enumerator returned from GetEnumerator to get all the items and copy them to the provided array.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public virtual void CopyTo(
	T[] array,
	int arrayIndex
)
Public Overridable Sub CopyTo ( _
	array As T(), _
	arrayIndex As Integer _
)
public:
virtual void CopyTo(
	array<T>^ array, 
	int^ arrayIndex
)

Parameters

array
Type: array<T>[]()[][]
Array to copy to.
arrayIndex
Type: Int32
Starting index in array to copy to.