public byte[] ReadToByte(string path) { byte[] _dataArray = null; IContentSource _foundSource = null; foreach (IContentSource provider in _sources.Values) { if (provider.Containes(path.ToLower())) { _foundSource = provider; } } if (_foundSource != null) { _dataArray = _foundSource.ReadToByte(path); return(_dataArray); } else { throw new FileNotFoundException("File " + path + " not found in any of the providers"); } }