public StoreFile GetFile(string path) { if(path == null) { throw new ArgumentNullException(path); } Guid? id = GetFileId(path); if(id.HasValue && files.ContainsKey(id.Value)) { return files[id.Value]; } // not found return null; }