예제 #1
0
        public void DeleteByIndex(int index)
        {
            CheckBounds(index);
            DoubleNode crnt = FindDoubleNode(index);

            crnt.Detach();
            Length--;
        }
예제 #2
0
 public void DeleteAllByValue(int value)
 {
     for (DoubleNode n = _root.Next; n != _root; n = n.Next)
     {
         if (value == n.Value)
         {
             n.Detach();
             Length--;
         }
     }
 }