IQueue<T>.TryDequeue(T) Method

Attempts to remove and return the element at the beginning of the queue.

Namespace: Spring.Collections
public
 function TryDequeue(out item: T): Boolean;

Parameters

item
Type: T

The element that was removed if the operation was successful, Default(T) otherwise.

Return Value

Type: Boolean

True if an element was removed and returned from the beginning of the queue; otherwise, False.