static void Main() { MyLinkedList list = new MyLinkedList(); list.AddToEnd(35); list.AddToEnd(124); list.AddToEnd(34); list.Print(); }
public MyLinkedList Clone() { MyLinkedList newList = new MyLinkedList(); foreach (Person item in this) { newList.AddToEnd(new Point(item).data); } return(newList); }