static void Main(string[] args) { TwoWayLinkedList <Minion> minions = new TwoWayLinkedList <Minion>(); minions.Add(new Minion(1, "Brad", 21, 1)); minions.Add(new Minion(2, "Jhony", 32, 3)); minions.Add(new Minion(3, "Georgy", 41, 2)); minions.InsertBefore(new Minion(4, "Penny", 27, 4), 1); minions.RemoveAt(5); Console.WriteLine(minions); }
public LinkedListDeque(T data) : base() { items.Add(data); }