using and ZipFile

Feb 4, 2010 at 11:52 AM
Edited Feb 4, 2010 at 11:52 AM

Hi Cheeso

Just wondering We are creating instances of ZipFile without the using block.

Is it necessary to close the ZipFile, if so we have not seen any close methods for it.

Please advise.


Feb 4, 2010 at 12:19 PM

There is a Dispose() method.

 you need to use either the using clause or the Dispose method.