aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Cab/CabinetFileInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/Cab/CabinetFileInfo.cs')
-rw-r--r--src/WixToolset.Core/Cab/CabinetFileInfo.cs39
1 files changed, 10 insertions, 29 deletions
diff --git a/src/WixToolset.Core/Cab/CabinetFileInfo.cs b/src/WixToolset.Core/Cab/CabinetFileInfo.cs
index 849bb3bb..816f9e3e 100644
--- a/src/WixToolset.Core/Cab/CabinetFileInfo.cs
+++ b/src/WixToolset.Core/Cab/CabinetFileInfo.cs
@@ -1,19 +1,12 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2 2
3namespace WixToolset 3namespace WixToolset.Core.Cab
4{ 4{
5 using System;
6
7 /// <summary> 5 /// <summary>
8 /// Properties of a file in a cabinet. 6 /// Properties of a file in a cabinet.
9 /// </summary> 7 /// </summary>
10 internal sealed class CabinetFileInfo 8 public sealed class CabinetFileInfo
11 { 9 {
12 private string fileId;
13 private ushort date;
14 private ushort time;
15 private int size;
16
17 /// <summary> 10 /// <summary>
18 /// Constructs CabinetFileInfo 11 /// Constructs CabinetFileInfo
19 /// </summary> 12 /// </summary>
@@ -22,43 +15,31 @@ namespace WixToolset
22 /// <param name="time">Last modified time (MS-DOS time)</param> 15 /// <param name="time">Last modified time (MS-DOS time)</param>
23 public CabinetFileInfo(string fileId, ushort date, ushort time, int size) 16 public CabinetFileInfo(string fileId, ushort date, ushort time, int size)
24 { 17 {
25 this.fileId = fileId; 18 this.FileId = fileId;
26 this.date = date; 19 this.Date = date;
27 this.time = time; 20 this.Time = time;
28 this.size = size; 21 this.Size = size;
29 } 22 }
30 23
31 /// <summary> 24 /// <summary>
32 /// Gets the file Id of the file. 25 /// Gets the file Id of the file.
33 /// </summary> 26 /// </summary>
34 /// <value>file Id</value> 27 /// <value>file Id</value>
35 public string FileId 28 public string FileId { get; }
36 {
37 get { return this.fileId; }
38 }
39 29
40 /// <summary> 30 /// <summary>
41 /// Gets modified date (DOS format). 31 /// Gets modified date (DOS format).
42 /// </summary> 32 /// </summary>
43 public ushort Date 33 public ushort Date { get; }
44 {
45 get { return this.date; }
46 }
47 34
48 /// <summary> 35 /// <summary>
49 /// Gets modified time (DOS format). 36 /// Gets modified time (DOS format).
50 /// </summary> 37 /// </summary>
51 public ushort Time 38 public ushort Time { get; }
52 {
53 get { return this.time; }
54 }
55 39
56 /// <summary> 40 /// <summary>
57 /// Gets the size of the file in bytes. 41 /// Gets the size of the file in bytes.
58 /// </summary> 42 /// </summary>
59 public int Size 43 public int Size { get; }
60 {
61 get { return this.size; }
62 }
63 } 44 }
64} 45}