Click or drag to resize
DigitalRuneMaterialInstanceCollectionCopyTo Method
Copies the elements of the MaterialInstanceCollection to an Array, starting at a particular Array index.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public void CopyTo(
	MaterialInstance[] array,
	int arrayIndex
)

Parameters

array
Type: DigitalRune.Graphics.SceneGraphMaterialInstance
The one-dimensional Array that is the destination of the elements copied from MaterialInstanceCollection. The Array must have zero-based indexing.
arrayIndex
Type: SystemInt32
The zero-based index in array at which copying begins.

Implements

ICollectionTCopyTo(T, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentExceptionarray is multidimensional. Or arrayIndex is equal to or greater than the length of array. Or the number of elements in the source MaterialInstanceCollection is greater than the available space from arrayIndex to the end of the destination array.
Remarks

This method is an O(n) operation, where n is Count.

See Also