private object CallInvoke(MethodBase method, object[] args) { try { return(ProfilerInterceptor.GuardExternal(() => SecuredReflectionMethods.Invoke(method, this.instance, args))); } catch (TargetInvocationException targetInvocationException) { if (this.RethrowOriginalOnCallMethod && targetInvocationException.InnerException != null) { throw targetInvocationException.InnerException; } else { throw; } } }
private object CallInvoke(MethodBase method, object[] args) { return(ProfilerInterceptor.GuardExternal(() => SecuredReflectionMethods.Invoke(method, this.instance, args))); }