Example #1
0
        public static int InterfaceTest2(int value)
        {
            GenericInterfaceTestClass <int> gic = new GenericInterfaceTestClass <int>();
            IInterfaceAA <int> aa = gic;

            return(aa.GetValue(value));
        }
Example #2
0
        public static int InterfaceTest3(int value)
        {
            GenericInterfaceTestClass <int> gic = new GenericInterfaceTestClass <int>();
            IInterfaceBB <int> bb = gic;

            return(bb.Get(value));
        }
Example #3
0
        public static int InterfaceTest1(int value)
        {
            GenericInterfaceTestClass <int> gic = new GenericInterfaceTestClass <int>();

            return(gic.GetValue(value));
        }