CircularListTCopyTo(T, Int32) Method

Copies the entire CircularListT to a compatible one-dimensional array, starting at a particular array index.

Definition

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

Parameters

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  (Optional)
The zero-based index in array at which copying begins.

Implements

ICollectionTCopyTo(T, Int32)

Exceptions

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

See Also