public static void DequeueItems() { int value = -1; for (int i = 0; i < 500; i++) { myQueue.Dequeue(ref value); Console.WriteLine("dequeued: {0}", value); } }
public static void d(int n) { int data = 0; for (int i = 0; i < n; i++) { bool tf = queue.Dequeue(ref data); //if (tf == false) { // Console.WriteLine ("empty"); // Console.ReadLine (); //} else { // Console.WriteLine ("pop"); //} //Console.WriteLine (data); } }