static void Main() { MyLinkedList<int> myLList = new MyLinkedList<int>(); AddElements(myLList, 20); PrintWithForEach(myLList); int pos = myLList.LastIndexOf(4); Console.WriteLine("{0}", pos); Console.Read(); }