NameObjectCollectionCopyTo Method

Copies the entire NameObjectCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

Definition

Namespace: DevCase.Runtime.Collections
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public void CopyTo(
	Array dest,
	int index
)

Parameters

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

Exceptions

ArgumentNullException dest is null.
ArgumentOutOfRangeException index is less than zero.
ArgumentException dest is multidimensional. -or- The number of elements in the source NameObjectCollection is greater than the available space from index to the end of the destination dest.
InvalidCastException The type of the source NameObjectCollection cannot be cast automatically to the type of the destination dest.

See Also