コード例 #1
0
        public int Test12DerivedGenericInterfaceCall()
        {
            int a = 0;
            ICompareCalls <int> p = new CompareCallsDerived();

            for (int i = 0; i < Count; i++)
            {
                a = p.CallInterface(a);
            }
            return(Count);
        }
コード例 #2
0
        public int Test14DerivedInterfaceGenericCall()
        {
            int           a = 0;
            ICompareCalls p = new CompareCallsDerived();

            for (int i = 0; i < Count; i++)
            {
                a = p.CallInterface <object>(a);
            }
            return(Count);
        }
コード例 #3
0
        public int Test08DerivedVirtualCall()
        {
            int a = 0;
            CompareCallsDerived p = new CompareCallsDerived();

            for (int i = 0; i < Count; i++)
            {
                a = p.CallVirtual(a);
            }
            return(Count);
        }