[API Proposal]: Make ZipArchiveEntry.CompressionMethod public #95909
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.IO.Compression
Milestone
Background and motivation
We are using Zip as simple container for a bunch of image files (JPEG). We need to make sure that function only process STORE ZipArchiveEntry (aka NoCompression). Right now we compare
entry.CompressedLength
againstentry.Length
to deduce if the entry is reallySTORE
(and notDEFLATE
).It would make sense to expose directly CompressionMethod as read-only for simplicity.
API Proposal
API Usage
Alternative Designs
Risks
No response
The text was updated successfully, but these errors were encountered: