예제 #1
0
        public static int InterfaceTest3()
        {
            InterfaceTestClass tc = new InterfaceTestClass();
            IInterfaceAB       b  = tc;

            return(b.A());
        }
예제 #2
0
        public static bool InterfaceTest3()
        {
            TestClass    tc     = new TestClass();
            IInterfaceAB b      = tc;
            bool         result = (b.A() == 2);

            return(result);
        }