private ClientSetting SettingToClientSetting(SettingElement setting) { IStringProperty property = ClientSettingsView.SettingToProperty(setting); if (property == null) { Debug.Fail("Shouldn't be converting a null element to a ClientSetting."); return(null); } else { return(new ClientSetting(property.Name, property.Value, this.SettingsLocation)); } }
public string GetSetting(string name) { IStringProperty property = ClientSettingsView.SettingToProperty(this.GetSettingInternal(name)); return(property == null ? null : property.Value); }