static void LoadLocalConfig(string configFilePath) { ModifiedSetting.LoadLocalConfig(configFilePath); if (ConfigSetting.GetValue <int>("SettingVersion") > ModifiedSetting.GetValue <int>("SettingVersion")) { // Lower version, reset to default ModifiedSetting.Clear(); return; } foreach (var setting in ModifiedSetting) { ConfigSetting.SetValue(setting.Key, setting.Value); } }
static public ReturnType GetValue <ReturnType>(string key, ReturnType defaultValue = default(ReturnType)) { return(ConfigSetting.GetValue <ReturnType>(key, defaultValue)); }
static public object GetValue(string key) { return(ConfigSetting.GetValue(key)); }