Пример #1
0
        public static int Entry()
        {
            group3.Base <int, float> b = new group3.Derived <float, int>();
            b.Foo <short, long>(1, 1.2f, (long)999999, (short)12345);

            if (b.fld != 0)
            {
                return(1);
            }

            if (((group3.Derived <float, int>)b).fld != 0)
            {
                return(2);
            }

            if (b.fld2 != 0)
            {
                return(3);
            }

            if (((group3.Derived <float, int>)b).fld2 != 1)
            {
                return(4);
            }

            return(0);
        }
Пример #2
0
 public static void Entry()
 {
     group3.Base <int, float> b = new group3.Derived <float, int>();
     b.Foo <short, long>(1, 1.2f, (long)999999, (short)12345);
 }