diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-16 12:18:36 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-23 15:43:40 -0700 |
| commit | 505fe69d85c90184cd37290ccb0120fec6074c20 (patch) | |
| tree | 685314724a00232c2cad02e73c88214bee25df4f /src/WixToolset.Data/Tuples/ControlTuple.cs | |
| parent | ac1400ac5502db2f975e94dc803c155fd6a0a0e0 (diff) | |
| download | wix-505fe69d85c90184cd37290ccb0120fec6074c20.tar.gz wix-505fe69d85c90184cd37290ccb0120fec6074c20.tar.bz2 wix-505fe69d85c90184cd37290ccb0120fec6074c20.zip | |
Remove redundant `?.Value` from strongly typed accesses
Diffstat (limited to 'src/WixToolset.Data/Tuples/ControlTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ControlTuple.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/WixToolset.Data/Tuples/ControlTuple.cs b/src/WixToolset.Data/Tuples/ControlTuple.cs index f77c3689..d08d9311 100644 --- a/src/WixToolset.Data/Tuples/ControlTuple.cs +++ b/src/WixToolset.Data/Tuples/ControlTuple.cs | |||
| @@ -79,43 +79,43 @@ namespace WixToolset.Data.Tuples | |||
| 79 | 79 | ||
| 80 | public string Dialog_ | 80 | public string Dialog_ |
| 81 | { | 81 | { |
| 82 | get => (string)this.Fields[(int)ControlTupleFields.Dialog_]?.Value; | 82 | get => (string)this.Fields[(int)ControlTupleFields.Dialog_]; |
| 83 | set => this.Set((int)ControlTupleFields.Dialog_, value); | 83 | set => this.Set((int)ControlTupleFields.Dialog_, value); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | public string Control | 86 | public string Control |
| 87 | { | 87 | { |
| 88 | get => (string)this.Fields[(int)ControlTupleFields.Control]?.Value; | 88 | get => (string)this.Fields[(int)ControlTupleFields.Control]; |
| 89 | set => this.Set((int)ControlTupleFields.Control, value); | 89 | set => this.Set((int)ControlTupleFields.Control, value); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | public string Type | 92 | public string Type |
| 93 | { | 93 | { |
| 94 | get => (string)this.Fields[(int)ControlTupleFields.Type]?.Value; | 94 | get => (string)this.Fields[(int)ControlTupleFields.Type]; |
| 95 | set => this.Set((int)ControlTupleFields.Type, value); | 95 | set => this.Set((int)ControlTupleFields.Type, value); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | public int X | 98 | public int X |
| 99 | { | 99 | { |
| 100 | get => (int)this.Fields[(int)ControlTupleFields.X]?.Value; | 100 | get => (int)this.Fields[(int)ControlTupleFields.X]; |
| 101 | set => this.Set((int)ControlTupleFields.X, value); | 101 | set => this.Set((int)ControlTupleFields.X, value); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | public int Y | 104 | public int Y |
| 105 | { | 105 | { |
| 106 | get => (int)this.Fields[(int)ControlTupleFields.Y]?.Value; | 106 | get => (int)this.Fields[(int)ControlTupleFields.Y]; |
| 107 | set => this.Set((int)ControlTupleFields.Y, value); | 107 | set => this.Set((int)ControlTupleFields.Y, value); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | public int Width | 110 | public int Width |
| 111 | { | 111 | { |
| 112 | get => (int)this.Fields[(int)ControlTupleFields.Width]?.Value; | 112 | get => (int)this.Fields[(int)ControlTupleFields.Width]; |
| 113 | set => this.Set((int)ControlTupleFields.Width, value); | 113 | set => this.Set((int)ControlTupleFields.Width, value); |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | public int Height | 116 | public int Height |
| 117 | { | 117 | { |
| 118 | get => (int)this.Fields[(int)ControlTupleFields.Height]?.Value; | 118 | get => (int)this.Fields[(int)ControlTupleFields.Height]; |
| 119 | set => this.Set((int)ControlTupleFields.Height, value); | 119 | set => this.Set((int)ControlTupleFields.Height, value); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| @@ -266,25 +266,25 @@ namespace WixToolset.Data.Tuples | |||
| 266 | 266 | ||
| 267 | public string Property | 267 | public string Property |
| 268 | { | 268 | { |
| 269 | get => (string)this.Fields[(int)ControlTupleFields.Property]?.Value; | 269 | get => (string)this.Fields[(int)ControlTupleFields.Property]; |
| 270 | set => this.Set((int)ControlTupleFields.Property, value); | 270 | set => this.Set((int)ControlTupleFields.Property, value); |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | public string Text | 273 | public string Text |
| 274 | { | 274 | { |
| 275 | get => (string)this.Fields[(int)ControlTupleFields.Text]?.Value; | 275 | get => (string)this.Fields[(int)ControlTupleFields.Text]; |
| 276 | set => this.Set((int)ControlTupleFields.Text, value); | 276 | set => this.Set((int)ControlTupleFields.Text, value); |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | public string Control_Next | 279 | public string Control_Next |
| 280 | { | 280 | { |
| 281 | get => (string)this.Fields[(int)ControlTupleFields.Control_Next]?.Value; | 281 | get => (string)this.Fields[(int)ControlTupleFields.Control_Next]; |
| 282 | set => this.Set((int)ControlTupleFields.Control_Next, value); | 282 | set => this.Set((int)ControlTupleFields.Control_Next, value); |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | public string Help | 285 | public string Help |
| 286 | { | 286 | { |
| 287 | get => (string)this.Fields[(int)ControlTupleFields.Help]?.Value; | 287 | get => (string)this.Fields[(int)ControlTupleFields.Help]; |
| 288 | set => this.Set((int)ControlTupleFields.Help, value); | 288 | set => this.Set((int)ControlTupleFields.Help, value); |
| 289 | } | 289 | } |
| 290 | 290 | ||
| @@ -296,7 +296,7 @@ namespace WixToolset.Data.Tuples | |||
| 296 | 296 | ||
| 297 | public string SourceFile | 297 | public string SourceFile |
| 298 | { | 298 | { |
| 299 | get => (string)this.Fields[(int)ControlTupleFields.SourceFile]?.Value; | 299 | get => (string)this.Fields[(int)ControlTupleFields.SourceFile]; |
| 300 | set => this.Set((int)ControlTupleFields.SourceFile, value); | 300 | set => this.Set((int)ControlTupleFields.SourceFile, value); |
| 301 | } | 301 | } |
| 302 | } | 302 | } |
