예제 #1
0
 private static IEnumerable <string> ReadZipEntry(Ionic.Zip.ZipEntry entry)
 {
     using (var entryReader = new StreamReader(entry.OpenReader()))
     {
         while (!entryReader.EndOfStream)
         {
             yield return(entryReader.ReadLine());
         }
     }
 }
예제 #2
0
        private static IEnumerable <string> ReadZipEntry(Ionic.Zip.ZipEntry entry)
        {
            using (var entryReader = new StreamReader(entry.OpenReader()))
            {
                var line = entryReader.ReadLine();
                while (line != null)
                {
                    yield return(line);

                    line = entryReader.ReadLine();
                }
            }
        }
예제 #3
0
        private static List <string> ReadZipEntry(Ionic.Zip.ZipEntry entry)
        {
            var result = new List <string>();

            using var entryReader = new StreamReader(entry.OpenReader());
            var line = entryReader.ReadLine();

            while (line != null)
            {
                result.Add(line);
                line = entryReader.ReadLine();
            }
            return(result);
        }