Westwind.WebConnection.wwDotNetBridge.InvokeMethodWithParameterArray C# (CSharp) Method

InvokeMethodWithParameterArray() public method

Invokes a method with an explicit array of parameters Allows for any number of parameters to be passed.
public InvokeMethodWithParameterArray ( object instance, string method, object parms ) : object
instance object
method string
parms object
return object
        public object InvokeMethodWithParameterArray(object instance, string method, object[] parms)
        {
            return InvokeMethod_InternalWithObjectArray(instance, method, parms);
        }

Usage Example

 /// <summary>
 /// Sets the Value property from a method call that passes it's positional arguments
 /// as an array.
 /// </summary>
 /// <param name="objectRef">Object instance</param>
 /// <param name="method">Method to call</param>
 /// <param name="parms">An array of the parameters passed (use ComArray and InvokeMethod)</param>
 public void SetValueFromInvokeMethod(object objectRef, string method, object[] parms)
 {
     wwDotNetBridge bridge = new wwDotNetBridge();
     Value = bridge.InvokeMethodWithParameterArray(objectRef, method, parms);
 }
wwDotNetBridge