ImmutableQueue<T>.PeekRef Method

Definition

Gets a read-only reference to the element at the front of the queue.

public:
 T& ^ PeekRef();
public ref readonly T PeekRef ();
member this.PeekRef : unit -> 'T
Public Function PeekRef () As T

Returns

T

Exceptions

The queue is empty.

Applies to