TryDequeue(T)
abstract
public abstract bool TryDequeue(out T item) Attempts to remove and return the element at the beginning of the queue.
Parameters
itemT- The removed element, or the default value of
Twhen the queue is empty.
Returns
true if an element was removed; otherwise, false.