TQueue<T>.PeekOrDefault Method

Returns the element at the beginning of the queue without removing it. Returns Default(T) if the queue is empty.

Namespace: Spring.Collections.Queues
public
 function PeekOrDefault: T;

Return Value

Type: T

 

Implements

IQueue<T>.PeekOrDefault