/// <summary> /// </summary> public void UnloadPlugin(string name) { var plugin = Loaded.Find(name); if (plugin != null) { plugin.Instance.Dispose(); Loaded.Remove(plugin); } }