Esempio n. 1
0
        static void Main()
        {
            MyLinkedList list = new MyLinkedList();

            list.AddToEnd(35);
            list.AddToEnd(124);
            list.AddToEnd(34);
            list.Print();
        }
Esempio n. 2
0
        public MyLinkedList Clone()
        {
            MyLinkedList newList = new MyLinkedList();

            foreach (Person item in this)
            {
                newList.AddToEnd(new Point(item).data);
            }
            return(newList);
        }