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

InvokeMethod_InternalWithObjectArray() protected method

protected InvokeMethod_InternalWithObjectArray ( object Instance, string Method, object args ) : object
Instance object
Method string
args object
return object
        protected object InvokeMethod_InternalWithObjectArray(object Instance, string Method, object[] args)
        {
            SetError();
            object result;

            try
            {
                if (Method.Contains(".") || Method.Contains("["))
                    result = ReflectionUtils.CallMethodEx(Instance, Method, args);
                else
                    result = ReflectionUtils.CallMethodCom(Instance, Method, args);
            }
            catch (Exception ex)
            {
                SetError(ex.GetBaseException(), true);
                throw ex.GetBaseException();
            }

            return FixupReturnValue(result);
        }
wwDotNetBridge