예제 #1
0
        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);
            }
        }
예제 #2
0
 static public ReturnType GetValue <ReturnType>(string key, ReturnType defaultValue = default(ReturnType))
 {
     return(ConfigSetting.GetValue <ReturnType>(key, defaultValue));
 }
예제 #3
0
 static public object GetValue(string key)
 {
     return(ConfigSetting.GetValue(key));
 }