public bool AddPlugins(Assembly assembly)
{
Debug.AssertNotNull(assembly, "Assembly is null");
Plugin[] p = PluginReader.LoadPluginsFromAssembly(assembly);
// add the plugins to the category
if(p != null && p.Length > 0) {
for(int i = 0; i < p.Length; i++) {
Debug.AssertNotNull(plugins[i].PluginObject, "PluginObject is null");
plugins.Add(p[i]);
}
return true;
}
return false;
}