private object InvokeWorker(params object[] args) { object obj2; if (this._target.IsStatic) { try { return(this._target.Invoke(null, args)); } catch (TargetInvocationException exception) { throw ExceptionHelpers.UpdateForRethrow(exception.InnerException); } } try { obj2 = this._target.Invoke(args[0], GetNonStaticArgs(args)); } catch (TargetInvocationException exception2) { throw ExceptionHelpers.UpdateForRethrow(exception2.InnerException); } return(obj2); }
public override object InvokeInstance(object instance, params object[] args) { object obj2; if (this._target.IsStatic) { try { return(this._target.Invoke(null, args)); } catch (TargetInvocationException exception) { throw ExceptionHelpers.UpdateForRethrow(exception.InnerException); } } try { obj2 = this._target.Invoke(instance, args); } catch (TargetInvocationException exception2) { throw ExceptionHelpers.UpdateForRethrow(exception2.InnerException); } return(obj2); }
public override int Run(InterpretedFrame frame) { try { frame.Data[base._index] = Activator.CreateInstance(this._type); } catch (TargetInvocationException exception) { ExceptionHelpers.UpdateForRethrow(exception.InnerException); throw exception.InnerException; } return(1); }
public override int Run(InterpretedFrame frame) { object obj2; object[] parameters = new object[this._argCount]; for (int i = this._argCount - 1; i >= 0; i--) { parameters[i] = frame.Pop(); } try { obj2 = this._constructor.Invoke(parameters); } catch (TargetInvocationException exception) { ExceptionHelpers.UpdateForRethrow(exception.InnerException); throw exception.InnerException; } frame.Push(obj2); return(1); }
public override int Run(InterpretedFrame frame) { object[] args = new object[_argCount]; for (int i = _argCount - 1; i >= 0; i--) { args[i] = frame.Pop(); } object ret; try { ret = _constructor.Invoke(args); } catch (TargetInvocationException e) { ExceptionHelpers.UpdateForRethrow(e.InnerException); throw e.InnerException; } frame.Push(ret); return(+1); }
private object InvokeWorker(params object[] args) { if (_target.IsStatic) { try { return(_target.Invoke(null, args)); } catch (TargetInvocationException e) { throw ExceptionHelpers.UpdateForRethrow(e.InnerException); } } try { return(_target.Invoke(args[0], GetNonStaticArgs(args))); } catch (TargetInvocationException e) { throw ExceptionHelpers.UpdateForRethrow(e.InnerException); } }
public override object InvokeInstance(object instance, params object[] args) { if (_target.IsStatic) { try { return(_target.Invoke(null, args)); } catch (TargetInvocationException e) { throw ExceptionHelpers.UpdateForRethrow(e.InnerException); } } try { return(_target.Invoke(instance, args)); } catch (TargetInvocationException e) { throw ExceptionHelpers.UpdateForRethrow(e.InnerException); } }