public void SetFileInfo(int fileId, CacheFileInfo info) { if (this._files.ContainsKey(fileId)) { this._files[fileId] = info; } else { this._files.Add(fileId, info); } }
public void FromBinaryFile(BinaryFile file) { this.Info = file.Info; var thisBinaryFile = this as BinaryFile; if (thisBinaryFile != null) { thisBinaryFile.Data = file.Data; } else { this.Decode(file.Data); } }