public void DeleteByIndex(int index) { CheckBounds(index); DoubleNode crnt = FindDoubleNode(index); crnt.Detach(); Length--; }
public void DeleteAllByValue(int value) { for (DoubleNode n = _root.Next; n != _root; n = n.Next) { if (value == n.Value) { n.Detach(); Length--; } } }