Example #1
0
 /// <summary>
 /// Returns the result of a static method call
 /// </summary>
 /// <param name="typeName">The type to call the static method on</param>
 /// <param name="methodName"></param>
 /// <param name="methodParams">The parameters to pass to the method</param>
 /// <returns>The return value of the method</returns>
 public object CallStaticMethod(string typeName, string methodName, object[] methodParams)
 {
     if (!started)
     {
         throw new InvalidOperationException("PluginManager has not been started.");
     }
     return(LocalLoader.CallStaticMethod(typeName, methodName, methodParams));
 }