public static void Main (string[] args) { var testList = new LinkedList<int> (); testList.AddLast (1); testList.AddLast (2); testList.AddLast (2); testList.AddLast (3); testList.AddLast (3); testList.AddLast (3); testList.AddLast (4); testList.AddLast (1); testList.AddLast (4); var listhandler = new ListHandler (); //listhandler.deleteDups (testList.First); listhandler.deleteDupsNoBuffer (testList.First); foreach (int element in testList) { Console.WriteLine (element); } }
static void Main(string[] args) { LinkedList list = new LinkedList(); Console.WriteLine("It is empty? - "+ list.Empty); Console.WriteLine("Count -" + list.Count); list.Add("Test1"); list.Add("Test2"); list.Add("Test3"); Console.ReadLine(); }