public override object InvokeMethod(string name, params object[] args) { VerifyNotDisposed(); try { return(engine.MarshalToHost(engine.ScriptInvoke(() => target.InvokeMethod(name, false, engine.MarshalToScript(args))), false)); } catch (Exception exception) { if (TryGetScriptError(exception, out var scriptError)) { throw (Exception)scriptError; } throw; } }
public object InvokeMethod(string name, object[] args) { return(dispatchEx.InvokeMethod(name, false, args)); }