Click or drag to resize

RankedSetTCopyTo Method (T, Int32)

Copies the set 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
)

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.

Implements

ICollectionTCopyTo(T, Int32)
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