Exemple #1
0
        static void Main(string[] args)
        {
            GenericList<object> processingGenericList = new GenericList<object>();
            object[] list;


            //Testing

            processingGenericList.AddElement(0);
            processingGenericList.AddElement(1);
            processingGenericList.AddElement(2);
            processingGenericList.InsertElement(15,8);
            processingGenericList.AddElement(3);
            processingGenericList.AddElement(4);
            processingGenericList.AddElement(5);
            processingGenericList.AddElement(-1);
            processingGenericList.AddElement(7);
            processingGenericList.AddElement(8);
               
            list = processingGenericList.returnList();
            for (int i = 0; i < list.Length; i++)
            {
               Console.WriteLine(list[i]);
            }

            Console.WriteLine("Min is: " + processingGenericList.Min());
            Console.WriteLine("Max is: " + processingGenericList.Max());
        }