public Plugin(string filename, IPluginHost host) { try { this._host = host; this._assembly = Assembly.LoadFile(filename); var config = ReadResourceConfiguration(this._assembly); this._data = GetRegistryClasses(config); this.GetEntries(); this.IsLoaded = true; } catch { this.IsLoaded = false; } }