← Interactive API Explorer
Namespace: System.Collections.Generic

Queue<T>

Represents a first-in, first-out collection of objects.

Properties (1)

int Count
Gets the number of elements contained in the Queue.
Value: The number of elements contained in the Queue.

Methods (2)

void Enqueue(T)
Adds an object to the end of the Queue.
ParameterDescription
itemThe object to add to the Queue. The value can be null for reference types.
T Dequeue
Removes and returns the object at the beginning of the Queue.
Returns: The object that is removed from the beginning of the Queue.