コード例 #1
0
 private void DoRemove(DoubleLinkedListNode <T> node)
 {
     if (node == Head)
     {
         node.Dispose();
         Head = null;
     }
     else
     {
         var prev = node.Previous;
         var next = node.Next as DoubleLinkedListNode <T>;
         prev.Next     = next;
         next.Previous = prev;
     }
     Count--;
 }
コード例 #2
0
        public void AddLast(T data)
        {
            var node = new DoubleLinkedListNode <T>(data);

            AddLast(node);
        }