/// <summary> /// Initialises a new instance of <see cref="Deque{T}"/> that contains /// elements copied from the specified. /// </summary> /// <param name="collection">The collection whose elements are copied to the Dequeue.</param> public SynchronisedDeque(IEnumerable <T> collection) { _deque = new Deque <T>(collection); }
public DequeEnumerator(Deque <T> parent) { _parent = parent; _currentNode = _parent._head; _version = _parent._version; }
/// <summary> /// Initialises a new default instance of <see cref="SynchronisedDeque{T}"/>. /// </summary> public SynchronisedDeque() { _deque = new Deque <T>(); }