Esempio n. 1
0
        static void Main(string[] args)
        {
            CollectionType <int> test = new CollectionType <int>();

            test.Add(240);
            Console.Write(test[0]);
        }
Esempio n. 2
0
        void RandomData(int amount, ArrayList alis, List <Book> list, Printed_Edition[] arr, CollectionType <Book> collection)
        {
            Random r = new Random();

            for (int i = 0; i < amount; i++)
            {
                Book p = new Book();
                p.Price = r.Next(0, Int32.MaxValue) / 100;
                alis.Add(p);
                list.Add(new Book());
                arr[i] = new Book();
                collection.Add(new Book());
                list[i].Price       = r.Next(0, Int32.MaxValue) / 100;
                arr[i].Price        = r.Next(0, Int32.MaxValue) / 100;
                collection[i].Price = r.Next(0, Int32.MaxValue) / 100;
            }
        }