PriorityQueueTKey, TValueToArray Method

Copies the elements of the priority queue to a new array, sorts it and returns it in priority order.

This is an O(n log(n)) operation

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public TValue[] ToArray(
	bool highestFirst
)

Parameters

highestFirst  Boolean

[Missing <param name="highestFirst"/> documentation for "M:DHI.Mike1D.Generic.PriorityQueue`2.ToArray(System.Boolean)"]

Return Value

TValue

[Missing <returns> documentation for "M:DHI.Mike1D.Generic.PriorityQueue`2.ToArray(System.Boolean)"]

See Also