Modifica

Condividi tramite


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

Read-only reference to the element at the front of the queue.

Exceptions

The queue is empty.

Applies to