Method TryDequeue
TryDequeue(out T)
Removes the element from the end of the queue.
Declaration
public bool TryDequeue(out T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | Outputs the element removed. |
Returns
Type | Description |
---|---|
bool | True if an element was removed. |
Remarks
Does nothing if the queue is empty.