public override byte[] ReadData(string dataName) { lock (_filelock) { EntryInfo entryInfo; if (_allFiles.TryGetValue(dataName, out entryInfo)) { byte[] dataBuffer = null; using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { filedb.ReadContent(entryInfo, ms); dataBuffer = ms.ToArray(); } return(dataBuffer); } return(null); } }