aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-05-16 12:18:36 -0700
committerRob Mensching <rob@firegiant.com>2019-05-23 15:43:40 -0700
commit505fe69d85c90184cd37290ccb0120fec6074c20 (patch)
tree685314724a00232c2cad02e73c88214bee25df4f /src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs
parentac1400ac5502db2f975e94dc803c155fd6a0a0e0 (diff)
downloadwix-505fe69d85c90184cd37290ccb0120fec6074c20.tar.gz
wix-505fe69d85c90184cd37290ccb0120fec6074c20.tar.bz2
wix-505fe69d85c90184cd37290ccb0120fec6074c20.zip
Remove redundant `?.Value` from strongly typed accesses
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs b/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs
index d06e029f..c9d8e12f 100644
--- a/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs
+++ b/src/WixToolset.Data/Tuples/WixBundleContainerTuple.cs
@@ -62,49 +62,49 @@ namespace WixToolset.Data.Tuples
62 62
63 public string WixBundleContainer 63 public string WixBundleContainer
64 { 64 {
65 get => (string)this.Fields[(int)WixBundleContainerTupleFields.WixBundleContainer]?.Value; 65 get => (string)this.Fields[(int)WixBundleContainerTupleFields.WixBundleContainer];
66 set => this.Set((int)WixBundleContainerTupleFields.WixBundleContainer, value); 66 set => this.Set((int)WixBundleContainerTupleFields.WixBundleContainer, value);
67 } 67 }
68 68
69 public string Name 69 public string Name
70 { 70 {
71 get => (string)this.Fields[(int)WixBundleContainerTupleFields.Name]?.Value; 71 get => (string)this.Fields[(int)WixBundleContainerTupleFields.Name];
72 set => this.Set((int)WixBundleContainerTupleFields.Name, value); 72 set => this.Set((int)WixBundleContainerTupleFields.Name, value);
73 } 73 }
74 74
75 public ContainerType Type 75 public ContainerType Type
76 { 76 {
77 get => (ContainerType)Enum.Parse(typeof(ContainerType), (string)this.Fields[(int)WixBundleContainerTupleFields.Type]?.Value, true); 77 get => (ContainerType)Enum.Parse(typeof(ContainerType), (string)this.Fields[(int)WixBundleContainerTupleFields.Type], true);
78 set => this.Set((int)WixBundleContainerTupleFields.Type, value.ToString()); 78 set => this.Set((int)WixBundleContainerTupleFields.Type, value.ToString());
79 } 79 }
80 80
81 public string DownloadUrl 81 public string DownloadUrl
82 { 82 {
83 get => (string)this.Fields[(int)WixBundleContainerTupleFields.DownloadUrl]?.Value; 83 get => (string)this.Fields[(int)WixBundleContainerTupleFields.DownloadUrl];
84 set => this.Set((int)WixBundleContainerTupleFields.DownloadUrl, value); 84 set => this.Set((int)WixBundleContainerTupleFields.DownloadUrl, value);
85 } 85 }
86 86
87 public int Size 87 public int Size
88 { 88 {
89 get => (int)this.Fields[(int)WixBundleContainerTupleFields.Size]?.Value; 89 get => (int)this.Fields[(int)WixBundleContainerTupleFields.Size];
90 set => this.Set((int)WixBundleContainerTupleFields.Size, value); 90 set => this.Set((int)WixBundleContainerTupleFields.Size, value);
91 } 91 }
92 92
93 public string Hash 93 public string Hash
94 { 94 {
95 get => (string)this.Fields[(int)WixBundleContainerTupleFields.Hash]?.Value; 95 get => (string)this.Fields[(int)WixBundleContainerTupleFields.Hash];
96 set => this.Set((int)WixBundleContainerTupleFields.Hash, value); 96 set => this.Set((int)WixBundleContainerTupleFields.Hash, value);
97 } 97 }
98 98
99 public int AttachedContainerIndex 99 public int AttachedContainerIndex
100 { 100 {
101 get => (int)this.Fields[(int)WixBundleContainerTupleFields.AttachedContainerIndex]?.Value; 101 get => (int)this.Fields[(int)WixBundleContainerTupleFields.AttachedContainerIndex];
102 set => this.Set((int)WixBundleContainerTupleFields.AttachedContainerIndex, value); 102 set => this.Set((int)WixBundleContainerTupleFields.AttachedContainerIndex, value);
103 } 103 }
104 104
105 public string WorkingPath 105 public string WorkingPath
106 { 106 {
107 get => (string)this.Fields[(int)WixBundleContainerTupleFields.WorkingPath]?.Value; 107 get => (string)this.Fields[(int)WixBundleContainerTupleFields.WorkingPath];
108 set => this.Set((int)WixBundleContainerTupleFields.WorkingPath, value); 108 set => this.Set((int)WixBundleContainerTupleFields.WorkingPath, value);
109 } 109 }
110 } 110 }