Wintellect.PowerCollections Namespace
Algorithms Class
Algorithms Methods
GhostDoc Pro Sample Help File

Algorithms..::..Copy<(Of <(<'T>)>)> Method (IEnumerable<(Of <(<'T>)>)>, array<T>[]()[][], Int32)

Copies all of the items from the collection source to the array dest, starting at the index destIndex.

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

Syntax


public static void Copy<T>(
	IEnumerable<T> source,
	T[] dest,
	int destIndex
)
Public Shared Sub Copy(Of T) ( _
	source As IEnumerable(Of T), _
	dest As T(), _
	destIndex As Integer _
)
public:
generic<typename T>
static void Copy(
	IEnumerable<T>^ source, 
	array<T>^ dest, 
	int^ destIndex
)

Type Parameters

T

Parameters

source
Type: IEnumerable<(Of <(<'T>)>)>
The collection that provide the source items.
dest
Type: array<T>[]()[][]
The array to store the items into.
destIndex
Type: Int32
The index to begin copying items to.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptiondestIndex is negative or greater than dest.Length.
ArgumentNullExceptionsource or dest is null.
ArgumentExceptionThe collection has more items than will fit into the array. In this case, the array has been filled with as many items as fit before the exception is thrown.