public void Pop() { if (!_list.ReadFirst()) { return; } CurrentData = _list.CurrentData; _list.RemoveData(); }
public static void DisplayCircuitLinkedList() { CircuitLinkedList <int> list = new CircuitLinkedList <int>(); list.InsertFromLast(3); list.InsertFromLast(4); list.InsertFromLast(5); list.InsertFromFront(1); list.InsertFromFront(2); Console.WriteLine(list); list.RemoveData(data => data % 2 == 0); Console.WriteLine(list); }