public override void PushFront(object obj) { lock (root) { deque.PushFront(obj); } }
private static void PopulateDequePushFront(Deque deque) { deque.Clear(); for(int i = 0; i < ElementCount; i++) { deque.PushFront(i); } Debug.Assert(deque.Count == ElementCount); int j = ElementCount - 1; foreach(int i in deque) { Debug.Assert(i == j); j--; } }