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/FileTuple.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/FileTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/FileTuple.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/WixToolset.Data/Tuples/FileTuple.cs b/src/WixToolset.Data/Tuples/FileTuple.cs index 2f283406..1271ad55 100644 --- a/src/WixToolset.Data/Tuples/FileTuple.cs +++ b/src/WixToolset.Data/Tuples/FileTuple.cs | |||
| @@ -61,79 +61,79 @@ namespace WixToolset.Data.Tuples | |||
| 61 | 61 | ||
| 62 | public string File | 62 | public string File |
| 63 | { | 63 | { |
| 64 | get => (string)this.Fields[(int)FileTupleFields.File]?.Value; | 64 | get => (string)this.Fields[(int)FileTupleFields.File]; |
| 65 | set => this.Set((int)FileTupleFields.File, value); | 65 | set => this.Set((int)FileTupleFields.File, value); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | public string Component_ | 68 | public string Component_ |
| 69 | { | 69 | { |
| 70 | get => (string)this.Fields[(int)FileTupleFields.Component_]?.Value; | 70 | get => (string)this.Fields[(int)FileTupleFields.Component_]; |
| 71 | set => this.Set((int)FileTupleFields.Component_, value); | 71 | set => this.Set((int)FileTupleFields.Component_, value); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public string ShortFileName | 74 | public string ShortFileName |
| 75 | { | 75 | { |
| 76 | get => (string)this.Fields[(int)FileTupleFields.ShortFileName]?.Value; | 76 | get => (string)this.Fields[(int)FileTupleFields.ShortFileName]; |
| 77 | set => this.Set((int)FileTupleFields.ShortFileName, value); | 77 | set => this.Set((int)FileTupleFields.ShortFileName, value); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | public string LongFileName | 80 | public string LongFileName |
| 81 | { | 81 | { |
| 82 | get => (string)this.Fields[(int)FileTupleFields.LongFileName]?.Value; | 82 | get => (string)this.Fields[(int)FileTupleFields.LongFileName]; |
| 83 | set => this.Set((int)FileTupleFields.LongFileName, value); | 83 | set => this.Set((int)FileTupleFields.LongFileName, value); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | public int FileSize | 86 | public int FileSize |
| 87 | { | 87 | { |
| 88 | get => (int)this.Fields[(int)FileTupleFields.FileSize]?.Value; | 88 | get => (int)this.Fields[(int)FileTupleFields.FileSize]; |
| 89 | set => this.Set((int)FileTupleFields.FileSize, value); | 89 | set => this.Set((int)FileTupleFields.FileSize, value); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | public string Version | 92 | public string Version |
| 93 | { | 93 | { |
| 94 | get => (string)this.Fields[(int)FileTupleFields.Version]?.Value; | 94 | get => (string)this.Fields[(int)FileTupleFields.Version]; |
| 95 | set => this.Set((int)FileTupleFields.Version, value); | 95 | set => this.Set((int)FileTupleFields.Version, value); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | public string Language | 98 | public string Language |
| 99 | { | 99 | { |
| 100 | get => (string)this.Fields[(int)FileTupleFields.Language]?.Value; | 100 | get => (string)this.Fields[(int)FileTupleFields.Language]; |
| 101 | set => this.Set((int)FileTupleFields.Language, value); | 101 | set => this.Set((int)FileTupleFields.Language, value); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | public bool ReadOnly | 104 | public bool ReadOnly |
| 105 | { | 105 | { |
| 106 | get => (bool)this.Fields[(int)FileTupleFields.ReadOnly]?.Value; | 106 | get => (bool)this.Fields[(int)FileTupleFields.ReadOnly]; |
| 107 | set => this.Set((int)FileTupleFields.ReadOnly, value); | 107 | set => this.Set((int)FileTupleFields.ReadOnly, value); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | public bool Hidden | 110 | public bool Hidden |
| 111 | { | 111 | { |
| 112 | get => (bool)this.Fields[(int)FileTupleFields.Hidden]?.Value; | 112 | get => (bool)this.Fields[(int)FileTupleFields.Hidden]; |
| 113 | set => this.Set((int)FileTupleFields.Hidden, value); | 113 | set => this.Set((int)FileTupleFields.Hidden, value); |
| 114 | } | 114 | } |
| 115 | 115 | ||
| 116 | public bool System | 116 | public bool System |
| 117 | { | 117 | { |
| 118 | get => (bool)this.Fields[(int)FileTupleFields.System]?.Value; | 118 | get => (bool)this.Fields[(int)FileTupleFields.System]; |
| 119 | set => this.Set((int)FileTupleFields.System, value); | 119 | set => this.Set((int)FileTupleFields.System, value); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | public bool Vital | 122 | public bool Vital |
| 123 | { | 123 | { |
| 124 | get => (bool)this.Fields[(int)FileTupleFields.Vital]?.Value; | 124 | get => (bool)this.Fields[(int)FileTupleFields.Vital]; |
| 125 | set => this.Set((int)FileTupleFields.Vital, value); | 125 | set => this.Set((int)FileTupleFields.Vital, value); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | public bool Checksum | 128 | public bool Checksum |
| 129 | { | 129 | { |
| 130 | get => (bool)this.Fields[(int)FileTupleFields.Checksum]?.Value; | 130 | get => (bool)this.Fields[(int)FileTupleFields.Checksum]; |
| 131 | set => this.Set((int)FileTupleFields.Checksum, value); | 131 | set => this.Set((int)FileTupleFields.Checksum, value); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | public bool? Compressed | 134 | public bool? Compressed |
| 135 | { | 135 | { |
| 136 | get => (bool?)this.Fields[(int)FileTupleFields.Compressed]?.Value; | 136 | get => (bool?)this.Fields[(int)FileTupleFields.Compressed]; |
| 137 | set => this.Set((int)FileTupleFields.Compressed, value); | 137 | set => this.Set((int)FileTupleFields.Compressed, value); |
| 138 | } | 138 | } |
| 139 | } | 139 | } |
