CircularListTCopyTo(Int32, T, Int32, Int32) Method

Copies a range of elements from the CircularListT to a compatible one-dimensional array, starting at the specified index of the target array.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public void CopyTo(
	int index,
	T[] array,
	int arrayIndex,
	int count
)

Parameters

index  Int32
The zero-based index in the source list at which copying begins.
array  T
The one-dimensional Array that is the destination of the elements copied from the CircularListT. The Array must have zero-based indexing.
arrayIndex  Int32
The zero-based index in array at which copying begins.
count  Int32
The number of elements to copy.

Exceptions

ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
-or-
arrayIndex is less than 0.
-or-
count is less than 0.
ArgumentExceptionarrayIndex is equal to or greater than the length of array.
-or-
The number of elements in the source list is greater than the available space from arrayIndex to the end of the destination array.

See Also