public void Dispose() { this.settings = null; this.settingsFileLocation = null; }
private void TryLoadData() { try { BsonReader reader = BsonReader.Create(File.ReadAllText(this.settingsFileLocation)); this.settings = BsonSerializer.Deserialize<MusicDatabaseSettings>(reader); } catch { this.settings = MusicDatabaseSettings.CreateDefault(); this.Save(); } }