protected override RuntimeMethodHandle GetMethodHandle(MethodBase method) { if (method is DynamicMethod) { // Compile the method handle before getting our hands on the final method handle. dmd_DynamicMethod_CreateDynMethod?.Invoke(method); if (f_DynamicMethod_mhandle != null) { return((RuntimeMethodHandle)f_DynamicMethod_mhandle.GetValue(method)); } } return(method.MethodHandle); }