private InfoFile(FileInfo file, String version) { VERSION = version; if (file.Exists) { this.necessaryInfo = new NecessaryInfo(VERSION, file.FullName, file.Length.ToString(), null); //this.info = new Dictionary<string, BaseInfoType>(); } else { file.Create().Close(); throw new FileNotFoundException("无法找到源文件"); } }
protected InfoFile() { VERSION = LATEST_VERSION; this.necessaryInfo = new NecessaryInfo(VERSION, null, null, null); //this.info = new Dictionary<string, BaseInfoType>(); }
protected InfoFile(InfoFileStructure infoStruct) { this.necessaryInfo = infoStruct.necessaryInfo; this.info = infoStruct.info; this.VERSION = this.necessaryInfo.Info["Version"]; }