2010-03-05 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / class / WindowsBase / ZipSharp / ZipFileInfo.cs
blob2cbea32a40ce4174ddd8a89b55f8975cf11584f9
1 // ZipFileInfo.cs created with MonoDevelop
2 // User: alan at 12:14 13/10/2008
3 //
4 // To change standard headers go to Edit->Preferences->Coding->Standard Headers
5 //
7 using System;
9 namespace zipsharp
11 struct ZipFileInfo
13 ZipTime date;
14 IntPtr dosDate;
15 IntPtr internalFileAttributes;
16 IntPtr externalFileAttributes;
18 public DateTime FileTime
20 get { return date.Date; }
23 public long DosDate
25 get { return dosDate.ToInt64 (); }
28 internal long InternalFileAttributes
30 get { return internalFileAttributes.ToInt64 (); }
33 internal long ExternalFileAttributes
35 get { return externalFileAttributes.ToInt64 (); }
38 public ZipFileInfo (DateTime fileTime)
40 date = new ZipTime (fileTime);
41 dosDate = new IntPtr ((int)fileTime.ToFileTime ());
42 internalFileAttributes = IntPtr.Zero;
43 externalFileAttributes = IntPtr.Zero;