PriorityQueue<T>.Peek method

Returns (without removing) the smallest item in the PriorityQueue. This operation takes O(1) time.

public T Peek()

Return Value

The smallest item in the PriorityQueue.

Exceptions

exception condition
InvalidOperationException The priority queue is empty.

See Also