Steps to reproduce
- Pass a stream containing a .pdf file to the ZipFile(Stream) constructor
- Catch exception (ZipException: Cannot find central directory)
- Attempt to access the stream again
Expected behavior
The constructor shouldn't automatically close the stream on an exception.
At least, there should be an optional constructor parameter to specify IsStreamOwner.
Actual behavior
The constructor closes the stream, so we can't do anything with it after the constructor fails.
Version of SharpZipLib
0.86.0.518
Obtained from (place an x between the brackets for all that apply)