![]() | Priority |
Exception | Condition |
---|---|
InvalidOperationException | The PriorityQueue<T> is empty. |
This method is similar to the Dequeue() method, but Peek() does not modify the PriorityQueue<T>.
If type T is a reference type, null can be added to the PriorityQueue<T> as a value.
This method is an O(1) operation.