Created
April 6, 2017 15:14
-
-
Save jamesmontemagno/053af179c09551600cd775a2d8e50ed7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Settings | |
| { | |
| ISettings AppSettings | |
| { | |
| get | |
| { | |
| return CrossSettings.Current; | |
| } | |
| } | |
| #region Setting Constants | |
| private const string SettingsKey = "settings_key"; | |
| private static readonly string SettingsDefault = string.Empty; | |
| #endregion | |
| public static string GeneralSettings | |
| { | |
| get | |
| { | |
| return AppSettings.GetValueOrDefault<string>(SettingsKey, SettingsDefault); | |
| } | |
| set | |
| { | |
| AppSettings.AddOrUpdateValue<string>(SettingsKey, value); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment