public static void Main()
    {
        Test1 test1 = new Test1();
        Test1 test2 = new Test2();

        System.Console.WriteLine(test1.A());
        System.Console.WriteLine(test2.A());
    }
Exemplo n.º 2
0
    public static void Main()
    {
        Test1 test1 = new Test1();
        Test1 test2 = new Test2();

        System.Console.WriteLine(test1.A());
        System.Console.WriteLine(test2.A());
    }
    public static void Main()
    {
        ITest test1 = new Test1();
        ITest test2 = new Test2();
        ITest test3 = new Test3();
        ITest test4 = new Test4();

        System.Console.WriteLine(test1.A());
        System.Console.WriteLine(test2.A());
        System.Console.WriteLine(test3.A());
        System.Console.WriteLine(test4.A());
    }
Exemplo n.º 4
0
    public static void Main()
    {
        ITest test1 = new Test1();
        ITest test2 = new Test2();
        ITest test3 = new Test3();
        ITest test4 = new Test4();

        System.Console.WriteLine(test1.A());
        System.Console.WriteLine(test2.A());
        System.Console.WriteLine(test3.A());
        System.Console.WriteLine(test4.A());
    }
Exemplo n.º 5
0
    public static void Main()
    {
        ITest <string> test1 = new Test1();

        System.Console.WriteLine(test1.A());

        System.Console.WriteLine(test1[89]);

        ITest <int> test2 = new Test1();

        System.Console.WriteLine(test2.A());
        System.Console.WriteLine(test2[89]);
    }