コード例 #1
0
 /// <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);
 }
コード例 #2
0
 public DequeEnumerator(Deque <T> parent)
 {
     _parent      = parent;
     _currentNode = _parent._head;
     _version     = _parent._version;
 }
コード例 #3
0
 /// <summary>
 /// Initialises a new default instance of <see cref="SynchronisedDeque{T}"/>.
 /// </summary>
 public SynchronisedDeque()
 {
     _deque = new Deque <T>();
 }