Click or drag to resize

RankedBagTCopyTo Method (T, Int32, Int32)

Copies a supplied number of items to a compatible array, starting at the supplied position.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public void CopyTo(
	T[] array,
	int index,
	int count
)

Parameters

array
Type: T
A one-dimensional array that is the destination of the copy.
index
Type: SystemInt32
The zero-based starting position in array.
count
Type: SystemInt32
The number of items to copy.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen array is null.
ArgumentOutOfRangeExceptionWhen index is less than zero.
ArgumentExceptionWhen not enough space is available for the copy.
Remarks
This is a O(n) operation.
See Also