Exemplo n.º 1
0
        public void DefineMethodOverride(MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration)
        {
            ArgumentUtility.CheckNotNull("methodInfoBody", methodInfoBody);
            ArgumentUtility.CheckNotNull("methodInfoDeclaration", methodInfoDeclaration);

            var emittableMethodInfoBody        = EmittableOperandProvider.GetEmittableMethod(methodInfoBody);
            var emittableMethodInfoDeclaration = EmittableOperandProvider.GetEmittableMethod(methodInfoDeclaration);

            _typeBuilder.DefineMethodOverride(emittableMethodInfoBody, emittableMethodInfoDeclaration);
        }