Click or drag to resize
DigitalRuneContactSetICollectionCopyTo Method
Copies the Contacts of the ContactSet to an Array, starting at a particular Array index.

Namespace: DigitalRune.Geometry.Collisions
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
void ICollection.CopyTo(
	Array array,
	int index
)

Parameters

array
Type: SystemArray
The one-dimensional Array that is the destination of the Contacts copied from this ContactSet. The Array must have zero-based indexing.
index
Type: SystemInt32
The zero-based index in array at which copying begins.

Implements

ICollectionCopyTo(Array, Int32)
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is .
ArgumentOutOfRangeExceptionindex is less than 0.
ArgumentExceptionarray is multidimensional. Or index is equal to or greater than the length of array. Or the number of contacts in the source ContactSet is greater than the available space from index to the end of the destination array. Or type Contact cannot be cast automatically to the type of the destination array.
See Also