static void Main(string[] args) { var a = new LList2(); int[] mas = new int[] { 1, 2 }; a.Init(mas); int res = a.DelStart(); mas = new int[] { 2 }; Console.WriteLine(); Console.ReadLine(); //string operation = ""; //Console.WriteLine("Choose the class you want to test:"); //Console.WriteLine("1. AList0"); //Console.WriteLine("2. AList1"); //Console.WriteLine("3. AList2"); //int classToUse = Convert.ToInt16(Console.ReadLine()); //while (!ChooseClass(classToUse)) { } //while (operation != "e") //{ // Console.WriteLine("Choose Method to test"); // Console.WriteLine("1. Size"); // Console.WriteLine("2. Clear"); // Console.WriteLine("3. Init"); // Console.WriteLine("4. ToArray"); // Console.WriteLine("5. AddStart"); // Console.WriteLine("6. AddEnd"); // Console.WriteLine("7. AddPos"); // Console.WriteLine("8. DelStart"); // Console.WriteLine("9. DelEnd"); // Console.WriteLine("10. DelPos"); // Console.WriteLine("11. Min"); // Console.WriteLine("12. Max"); // Console.WriteLine("13. MinI"); // Console.WriteLine("14. MaxI"); // Console.WriteLine("15. Reverse"); // Console.WriteLine("16. HalfReverse"); // Console.WriteLine("17. Get"); // Console.WriteLine("18. Set"); // Console.WriteLine("19. Sort"); // Console.WriteLine("Press 'e' to exit."); // operation = Console.ReadLine(); // ChooseOperation(operation); //} }