TYPE

Queue<T>

FIFO collection; Enqueue appends and Dequeue removes the oldest member.

Formal Syntax & Structure

csharp syntaxcsharp
new Queue<T>()

Working Example

Example Snippetcsharp
using System.Collections.Generic;var q = new Queue<int>();q.Enqueue(4);System.Console.WriteLine(q.Dequeue());
C# & .NET Reference