[]
Invokes an instance method on a given object using dynamic dispatch.
public static object Invoke(string methodName, object target, object[] args)
| Type | Name | Description |
|---|---|---|
| string | methodName | The name of the method to invoke. |
| object | target | The object on which to invoke the method. Must not be |
| object[] | args | An array of arguments to pass to the method. If no arguments are needed, pass |
| Type | Description |
|---|---|
| object | The value returned by the invoked method, if any. If the method has no return value, |
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |