Exemple #1
0
 /// <summary>
 /// 默认配置初始化
 /// </summary>
 public void initDefCfg(string[] keys, string[] values)
 {
     GETAssert.isTrue(keys != null && values != null, "初始化参数不能为空");
     GETAssert.isTrue(keys.Length == values.Length, "key,value需要一一对应!");
     cfgMap.Clear();
     for (int i = 0; i < keys.Length; i++)
     {
         cfgMap[keys[i]] = values[i];
     }
 }
Exemple #2
0
 public GETConfig(string fileName)
 {
     GETAssert.isTrue(fileName != null && !"".Equals(fileName), "配置文件不能为空对象");
     mFileName = fileName;
 }