示例#1
0
        public static int InterfaceTest4()
        {
            InterfaceTestClassB tc = new InterfaceTestClassB();
            IInterfaceA         a  = tc;

            return(a.A());
        }
示例#2
0
        public static bool InterfaceTest4()
        {
            TestClassB  tc     = new TestClassB();
            IInterfaceA a      = tc;
            bool        result = (a.A() == 1);

            return(result);
        }