Пример #1
0
            public override object PopBack()
            {
                object obj;

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

                return(obj);
            }
Пример #2
0
        private static void TestPopBack(Deque deque)
        {
            deque.Clear();

            PopulateDequePushBack(deque);

            int j;

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

                Debug.Assert(j == ElementCount - 1 - i);
            }

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