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. |
리턴 | 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)); }