/// <summary> /// Invokes a method on the object /// </summary> /// <returns> /// The result of the invocation /// </returns> /// <param name='methodName'> /// The name of the method /// </param> /// <param name='parameters'> /// The parameters (primitive type values, RawValue instances or RawValueArray instances) /// </param> public object CallMethod(string methodName, params object[] parameters) { object res = source.CallMethod(methodName, parameters, options); RawValue val = res as RawValue; if (val != null) { val.options = options; } return(res); }
/// <summary> /// Invokes a method on the object /// </summary> /// <returns> /// The result of the invocation /// </returns> /// <param name='methodName'> /// The name of the method /// </param> /// <param name='parameters'> /// The parameters (primitive type values, RawValue instances or RawValueArray instances) /// </param> public object CallMethod(string methodName, params object [] parameters) { object res = source.CallMethod(methodName, parameters, options); RawValue val = res as RawValue; if (val != null) { val.options = options; } IRawObject raw = res as IRawObject; if (raw != null) { raw.Connect(session, options); } return(res); }
public object CallMethod(string name, object[] parameters, EvaluationOptions options) { return(MtaThread.Run(() => source.CallMethod(name, parameters, options))); }