Esempio n. 1
0
            public override object PopFront()
            {
                object obj;

                lock (root)
                {
                    obj = deque.PopFront();
                }

                return(obj);
            }
Esempio n. 2
0
        private static void TestPopFront(Deque deque)
        {
            deque.Clear();

            PopulateDequePushBack(deque);

            int j;

            for(int i = 0; i < ElementCount; i++)
            {
                j = (int)deque.PopFront();

                Debug.Assert(j == i);
            }

            Debug.Assert(deque.Count == 0);
        }