public CircularDoublyLinkedList<T> Prepend(CircularDoublyLinkedList<T> elt) { elt.Next = this; elt.Prev = Prev; Prev.Next = elt; Prev = elt; return elt; }
public CircularDoublyLinkedList<T> Append(CircularDoublyLinkedList<T> elt) { elt.Prev = this; elt.Next = Next; Next.Prev = elt; Next = elt; return elt; }
/// <summary> /// Adjust the remaining elements, make this one point nowhere /// </summary> public void Delete() { Next.Prev = Prev; Prev.Next = Next; Next = Prev = null; }