Пример #1
0
 public CircularDoublyLinkedList<T> Prepend(CircularDoublyLinkedList<T> elt)
 {
     elt.Next = this; elt.Prev = Prev; Prev.Next = elt; Prev = elt;
     return elt;
 }
Пример #2
0
 public CircularDoublyLinkedList<T> Append(CircularDoublyLinkedList<T> elt)
 {
     elt.Prev = this; elt.Next = Next; Next.Prev = elt; Next = elt;
     return elt;
 }
Пример #3
0
 /// <summary>
 /// Adjust the remaining elements, make this one point nowhere
 /// </summary>
 public void Delete()
 {
     Next.Prev = Prev; Prev.Next = Next;
     Next = Prev = null;
 }