Merge pull request #3028 from lateralusX/jlorenss/threadpool_warning
[mono.git] / mcs / class / WindowsBase / ZipSharp / ZipFileInfo.cs
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 //
6
7 using System;
8 using System.Runtime.InteropServices;
9
10 namespace zipsharp
11 {
12         [StructLayoutAttribute (LayoutKind.Sequential)]
13         struct ZipFileInfo
14         {
15                 ZipTime date;
16                 IntPtr dosDate;
17                 IntPtr internalFileAttributes;
18                 IntPtr externalFileAttributes;
19
20                 public DateTime FileTime
21                 {
22                         get { return date.Date; }
23                 }
24
25                 public long DosDate
26                 {
27                         get { return dosDate.ToInt64 (); }
28                 }
29                 
30                 internal long InternalFileAttributes
31                 {
32                         get { return internalFileAttributes.ToInt64 (); }
33                 }
34
35                 internal long ExternalFileAttributes
36                 {
37                         get { return externalFileAttributes.ToInt64 (); }
38                 }
39                 
40                 public ZipFileInfo (DateTime fileTime)
41                 {
42                         date = new ZipTime (fileTime);
43                         dosDate = IntPtr.Zero;
44                         internalFileAttributes = IntPtr.Zero;
45                         externalFileAttributes = IntPtr.Zero;
46                 }
47
48         }
49 }