예제 #1
0
        private static IEnumerable <Raw> LoadAllRaws(string rawsFolder, string rawsExtension)
        {
            var directoryInfo = new DirectoryInfo(rawsFolder);
            var files         = directoryInfo.GetFiles("*" + rawsExtension, SearchOption.AllDirectories);

            foreach (FileInfo fileInfo in files)
            {
                using (var fs = new FileStream(fileInfo.FullName, FileMode.Open))
                    foreach (var raw in RawReader.ParseAllRaws(fs))
                    {
                        yield return(raw);
                    }
            }
        }