private static IEnumerable <string> ReadZipEntry(Ionic.Zip.ZipEntry entry) { using (var entryReader = new StreamReader(entry.OpenReader())) { while (!entryReader.EndOfStream) { yield return(entryReader.ReadLine()); } } }
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(); } } }
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); }