Google.VersionHandler.InvokeInstanceMethod C# (CSharp) Method

InvokeInstanceMethod() public static method

Call a method on an object with named arguments.
public static InvokeInstanceMethod ( object objectInstance, string methodName, object args, object>.Dictionary namedArgs = null ) : object
objectInstance object Object to call a method on.
methodName string Name of the method to call.
args object
namedArgs object>.Dictionary Named arguments of the method.
return object
    public static object InvokeInstanceMethod(
            object objectInstance, string methodName, object[] args,
            Dictionary<string, object> namedArgs = null) {
        return InvokeMethod(objectInstance.GetType(),
                            objectInstance, methodName, args: args,
                            namedArgs: namedArgs);
    }