IQueue<T>.TryPeek(T) Method
Attempts to return an element from the beginning of the queue without removing it.
public
function TryPeek(out item: T): Boolean;
Parameters
- item
- Type: T
The element at the beginning of the queue if the operation was successful, Default(T) otherwise.
Return Value
Type: Boolean
True if an element was returned from the beginning of the queue; otherwise, False.