Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created April 6, 2017 15:14
Show Gist options
  • Select an option

  • Save jamesmontemagno/053af179c09551600cd775a2d8e50ed7 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmontemagno/053af179c09551600cd775a2d8e50ed7 to your computer and use it in GitHub Desktop.
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