GZipStream.Close causes ObjectDisposedExeption: Why?
-
28-10-2019 - |
سؤال
Can anyone explain this?
المحلول
when you close the GZip stream, it's closes the underlying file stream, the exception is thrown because you already closed the file stream. you don't need to close both of them, just close the gzip stream
لا تنتمي إلى StackOverflow