public static object ExecuteMethod(this PluginContainer pluginContainer, string methodName, params object[] parameters) { MethodInfo method = pluginContainer.GetMethod(methodName); if (method != null) { return(method.Invoke(pluginContainer.Instance, parameters)); } return(null); }
public static bool HasMethod(this PluginContainer pluginContainer, string methodName) { return(pluginContainer.GetMethod(methodName) != null); }