static void Main() { ListQueue <int> queue = new ListQueue <int>(); foreach (int i in Enumerable.Range(1, 8)) { queue.EnQueue(i); } foreach (var item in queue) { Console.WriteLine(item); } foreach (int i in Enumerable.Range(1, 9)) { queue.DeQueue(); } foreach (var item in queue) { Console.WriteLine(item); } Console.ReadKey(); }