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); }