Exemplo n.º 1
0
            public static int Main_old()
            {
                InterfaceS[] ifs = new InterfaceT[10];
                InterfaceT[] ift = new InterfaceT[10];
                Other_TestClass_covariance_explicit_04_Imp mc = new Other_TestClass_covariance_explicit_04_Imp();

                for (int x = 0; x < 10; x++)
                {
                    ifs[x] = new Other_TestClass_covariance_explicit_04_Imp();
                    ift[x] = new Other_TestClass_covariance_explicit_04_Imp();
                }
                ift = (InterfaceT[])ifs;
                return(0);
            }
Exemplo n.º 2
0
 public static int Main_old()
 {
     InterfaceS[] ifs = new InterfaceT[10];
     InterfaceT[] ift = new InterfaceT[10];
     Other_TestClass_covariance_explicit_04_Imp mc = new Other_TestClass_covariance_explicit_04_Imp();
     for (int x = 0; x < 10; x++)
     {
         ifs[x] = new Other_TestClass_covariance_explicit_04_Imp();
         ift[x] = new Other_TestClass_covariance_explicit_04_Imp();
     }
     ift = (InterfaceT[])ifs;
     return 0;
 }