コード例 #1
0
 /// <summary>
 /// Adds an object to the head of the queue
 /// </summary>
 /// <param name="item">The item to add to the queue</param>
 public void EnqueueFirst(T item)
 {
     _circularList.AddFirst(item);
 }
コード例 #2
0
 /// <summary>
 /// Adds an element to the begining of the deque
 /// </summary>
 /// <param name="item">Element to add</param>
 public void AddFirst(T item)
 {
     _circularList.AddFirst(item);
 }