public void RemoveAtIndexes(DoublyLinkedList <int> list) { if (Type.GetTypeCode(this.GetType()) == TypeCode.Int32) { this.OrderIncreasing(); } ; list.RemoveRedundancy(); list.OrderIncreasing(); var temp = list._header.Next; int counter = 1; while (temp.Next != null) { this.DeleteFromPosition((Convert.ToInt32(temp.Data)) - counter); temp = temp.Next; counter++; } }