Method CopyTo
CopyTo(T[], Int32)
Copies the elements of the priority queue to an Array, starting at a particular Array index.
Declaration
public virtual void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | The one-dimensional Array that is the destination of the elements copied from the priority queue. The Array must have zero-based indexing. |
System.Int32 | arrayIndex | The zero-based index in array at which copying begins. |
Remarks
It is not guaranteed that items will be copied in the sorted order.