public static void Main()
        {
            CoustomArrayList list = new CoustomArrayList();

            Console.WriteLine(list.Add(1));
            Console.WriteLine(list.Add(2));
            Console.WriteLine(list.Add(3));
            Console.WriteLine(list.Add(2));
            Console.WriteLine(list.Add(2));
            Console.WriteLine(list.Add(10));
            Console.WriteLine(list.Search(15) + " " + list.GetSize());

            foreach (int val in list)
            {
                Console.WriteLine(val);
            }
            Console.WriteLine(list.Add(30));
            Console.WriteLine(list.Add(20));
            Console.WriteLine(list.Add(25));
            foreach (int val in list)
            {
                Console.WriteLine(val);
            }
            Console.ReadLine();
        }
 public ArrayListEnum(CoustomArrayList list)
 {
     this.list = list;
 }