/// <summary> /// Saves settings to persistent storage. /// </summary> public void Save() { lock (_modifiedSettings) { foreach (var pair in _modifiedSettings) { _store.SetValue(pair.Key, this.ConvertToString(pair.Value, this.GetSettingType(pair.Key))); } _modifiedSettings.Clear(); } _store.Flush(); }