public static InvokeMethod ( |
||
type | Class to call the method on. | |
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 InvokeStaticMethod(Type type, string methodName, object[] args, Dictionary <string, object> namedArgs = null) { return(VersionHandler.InvokeMethod(type, null, methodName, args, namedArgs)); }
public static object InvokeInstanceMethod(object objectInstance, string methodName, object[] args, Dictionary <string, object> namedArgs = null) { return(VersionHandler.InvokeMethod(objectInstance.GetType(), objectInstance, methodName, args, namedArgs)); }