ListCollectionTCopyTo Method

Copies the elements of the ICollectionT to an Array, starting at a particular Array index.

Definition

Namespace: Gemstone.Collections
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.137 -- Release Build+84492f84208b356bfb930d6c506a4bce06d2449a
public void CopyTo(
	T[] array,
	int index
)

Parameters

array  T
The one-dimensional Array that is the destination of the elements copied from ICollectionT. The Array must have zero-based indexing.
index  Int32
The zero-based index in array at which copying begins.

Implements

ICollectionTCopyTo(T, Int32)

Exceptions

ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionindex is less than 0.
ArgumentExceptionThe number of elements in the source ICollectionT is greater than the available space from index to the end of the destination array.

See Also