Ejemplo n.º 1
0
        public void DeleteByIndex(int index)
        {
            CheckBounds(index);
            DoubleNode crnt = FindDoubleNode(index);

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