Пример #1
0
        static void Main(string[] args)
        {
            IndexedNames names = new IndexedNames();

            names[0] = "Anoop";
            names[1] = "Ajay";
            for (int i = 0; i < names.Length; i++)
            {
                Console.WriteLine(names[i]);
            }
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            IndexedNames names = new IndexedNames();

            names[0] = "Zara";
            names[1] = "Riz";
            names[2] = "Nuha";
            names[3] = "Asif";
            names[4] = "Davinder";
            names[5] = "Sunil";
            names[6] = "Rubic";
            for (int i = 0; i < IndexedNames.size; i++)
            {
                Console.WriteLine(names[i]);
            }

            Console.ReadKey();
        }
Пример #3
0
        static void Main(string[] args)
        {
            IndexedNames names = new IndexedNames();

            names[0] = "Talha";
            names[1] = "ahmet ";
            names[2] = "Ali";
            names[3] = "Ayşe";
            names[4] = "Mahmut";
            names[5] = "Hayriye";
            names[6] = "Hasan";

            for (int i = 0; i < IndexedNames.size; i++)
            {
                Console.WriteLine(names[i]);
            }

            Console.WriteLine(names[10]);
        }