Microsoft.Samples.Collections

Heap.CopyTo Method 

Copy all the elements stored on the current heap to the specified one-dimensional array starting at the specified index

public virtual void CopyTo(
   Array array,
   int index
);

Parameters

array
The array to copy to
index
The index to start from

Implements

ICollection.CopyTo

Exceptions

Exception TypeCondition
ArgumentExceptionThrown if the array is of the wrong size or rank.

See Also

Heap Class | Microsoft.Samples.Collections Namespace