public GetEntry ( string entryName ) : System.IO.Compression.ZipArchiveEntry | ||
entryName | string | |
return | System.IO.Compression.ZipArchiveEntry |
public System.IO.Compression.ZipArchiveEntry GetEntry(string entryName) { throw null; }
}
ZipArchive::GetEntry ( string entryName ) : ZipArchiveEntry |
public string ReadArchive(Stream archiveStream, string path) { using (var archive = new ZipArchive(archiveStream, ZipArchiveMode.Read)) { var zipArchiveEntry = archive.GetEntry(path); using (var stream = zipArchiveEntry.Open()) using (var reader = new StreamReader(stream)) { var content = reader.ReadToEnd(); return content; } } }