static void Main(string[] args)
        {
            IndexedNames names = new IndexedNames();

            names[0] = "Rob";
            names[1] = "Andrew";
            names[2] = "Slava";
            names[3] = "Larry";
            names[4] = "John";

            names.Display();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            IndexedNames Names = new IndexedNames();

            Names[0] = "A";
            Names[1] = "B";
            Names[2] = "C";
            Names[3] = "D";
            Names[4] = "E";
            Names[5] = "F";
            Names[6] = "G";
            Names[7] = "H";
            Names[8] = "I";

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