Extract returns the highest value object from the heap
The highest value object from the heap
The highest value is defined as the highest that would be returned by sorting using the IComparer provided at construction time or else the system default Comparer. This implementation uses the locale-sensitive default comparer.
| Exception Type | Condition |
|---|---|
| InvalidOperationException | Thrown when the Heap is empty. |
Heap Class | Microsoft.Samples.Collections Namespace