Microsoft.Samples.Collections

Heap.Peek Method 

Look at the element at the top of the heap without removing it.

public virtual object Peek();

Return Value

The element at the top of the heap.

Exceptions

Exception TypeCondition
InvalidOperationExceptionThrown when the Heap is empty.

See Also

Heap Class | Microsoft.Samples.Collections Namespace