コード例 #1
0
 /// <summary>
 /// 从配置文件中读取
 /// </summary>
 /// <param name="path"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 private IConfiger LoadConfigFile(string path, Type type)
 {
     this.configType      = type;
     fileChangeTime[path] = File.GetLastWriteTime(path);
     return(ConfigSerialize.DeserializeInfo(path, this.configType));
 }
コード例 #2
0
 internal bool WriteConfig(string path, IConfiger iConfigInfo)
 {
     return(ConfigSerialize.Serializer(path, iConfigInfo));
 }