2010-03-05 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / class / WindowsBase / ZipSharp / ZipHandle.cs
blob21843eb2eae22ff0b6283ea9242cbd9df3a70487
1 // ZipFile.cs created with MonoDevelop
2 // User: alan at 11:54 13/10/2008
3 //
4 // To change standard headers go to Edit->Preferences->Coding->Standard Headers
5 //
7 using System;
8 using System.Runtime.InteropServices;
10 namespace zipsharp
12 class ZipHandle : SafeHandle
14 public override bool IsInvalid {
15 get {
16 return handle == IntPtr.Zero;
20 public ZipHandle ()
21 : base (IntPtr.Zero, true)
26 protected override bool ReleaseHandle()
28 NativeZip.CloseArchive (this);
29 return true;