Esempio n. 1
0
        public static Stream GetFile(string path)
        {
            var archive = _archives.Values.FirstOrDefault(a => a.FileExists(path));

            if (archive == null)
            {
                throw new FileNotFoundException("Unable to find " + path);
            }
            var result = new CFileStream(archive, path);

            return(result);
        }
Esempio n. 2
0
 public static Stream GetFile(string path)
 {
     var archive = _archives.Values.FirstOrDefault(a => a.FileExists(path));
     if (archive == null)
         throw new FileNotFoundException("Unable to find " + path);
     var result = new CFileStream(archive, path);
     return result;
 }