Example #1
0
        protected CompiledMethod GetCompiledMethod(MethodDefinition method)
        {
            var declaringType = method.DeclaringType;
            var assembly      = declaringType.Module.Assembly;

            compiler.CompileIfRequired(assembly);

            var xMethod = GetXMethodDefinitionAfterCompilerSetup(method);
            var cmethod = AssemblyCompiler.GetCompiledMethod(xMethod);

            return(cmethod);
        }