Method InvokePrivate
| Edit this page View SourceInvokePrivate(object, string, object[])
Invoke a private method of any class instance
Declaration
public static object InvokePrivate(object instance, string name, object[] args = null)
Parameters
| Type | Name | Description |
|---|---|---|
| object | instance | Instance of the class |
| string | name | Name of the method |
| object[] | args | Argument values (if any) of the method |
Returns
| Type | Description |
|---|---|
| object | The return of the method as an object |