static void Main(string[] args) { var myArr = new MyArrayList <string>(); myArr.Add("1"); myArr.Add("2"); myArr.Add("3"); myArr.Add("4"); myArr.Add("5"); myArr.Add("4"); myArr.Add("3"); myArr.Add("2"); myArr.Add("1"); Array.ForEach(myArr.arrayList, Console.Write); Console.WriteLine(); myArr.Remove(3); Array.ForEach(myArr.arrayList, Console.Write); Console.WriteLine(); myArr.Remove("1"); Array.ForEach(myArr.arrayList, Console.Write); Console.WriteLine(); Console.WriteLine(myArr.IndexOf("5")); Console.WriteLine(); Array.ForEach(myArr.Get("3"), Console.Write); Console.WriteLine(); Console.WriteLine(myArr.Get(3)); Console.ReadKey(); }