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/IniFileTuple.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/IniFileTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/IniFileTuple.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/WixToolset.Data/Tuples/IniFileTuple.cs b/src/WixToolset.Data/Tuples/IniFileTuple.cs index bae28817..804fff13 100644 --- a/src/WixToolset.Data/Tuples/IniFileTuple.cs +++ b/src/WixToolset.Data/Tuples/IniFileTuple.cs | |||
| @@ -49,31 +49,31 @@ namespace WixToolset.Data.Tuples | |||
| 49 | 49 | ||
| 50 | public string FileName | 50 | public string FileName |
| 51 | { | 51 | { |
| 52 | get => (string)this.Fields[(int)IniFileTupleFields.FileName]?.Value; | 52 | get => (string)this.Fields[(int)IniFileTupleFields.FileName]; |
| 53 | set => this.Set((int)IniFileTupleFields.FileName, value); | 53 | set => this.Set((int)IniFileTupleFields.FileName, value); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | public string DirProperty | 56 | public string DirProperty |
| 57 | { | 57 | { |
| 58 | get => (string)this.Fields[(int)IniFileTupleFields.DirProperty]?.Value; | 58 | get => (string)this.Fields[(int)IniFileTupleFields.DirProperty]; |
| 59 | set => this.Set((int)IniFileTupleFields.DirProperty, value); | 59 | set => this.Set((int)IniFileTupleFields.DirProperty, value); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | public string Section | 62 | public string Section |
| 63 | { | 63 | { |
| 64 | get => (string)this.Fields[(int)IniFileTupleFields.Section]?.Value; | 64 | get => (string)this.Fields[(int)IniFileTupleFields.Section]; |
| 65 | set => this.Set((int)IniFileTupleFields.Section, value); | 65 | set => this.Set((int)IniFileTupleFields.Section, value); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | public string Key | 68 | public string Key |
| 69 | { | 69 | { |
| 70 | get => (string)this.Fields[(int)IniFileTupleFields.Key]?.Value; | 70 | get => (string)this.Fields[(int)IniFileTupleFields.Key]; |
| 71 | set => this.Set((int)IniFileTupleFields.Key, value); | 71 | set => this.Set((int)IniFileTupleFields.Key, value); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public string Value | 74 | public string Value |
| 75 | { | 75 | { |
| 76 | get => (string)this.Fields[(int)IniFileTupleFields.Value]?.Value; | 76 | get => (string)this.Fields[(int)IniFileTupleFields.Value]; |
| 77 | set => this.Set((int)IniFileTupleFields.Value, value); | 77 | set => this.Set((int)IniFileTupleFields.Value, value); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| @@ -85,7 +85,7 @@ namespace WixToolset.Data.Tuples | |||
| 85 | 85 | ||
| 86 | public string Component_ | 86 | public string Component_ |
| 87 | { | 87 | { |
| 88 | get => (string)this.Fields[(int)IniFileTupleFields.Component_]?.Value; | 88 | get => (string)this.Fields[(int)IniFileTupleFields.Component_]; |
| 89 | set => this.Set((int)IniFileTupleFields.Component_, value); | 89 | set => this.Set((int)IniFileTupleFields.Component_, value); |
| 90 | } | 90 | } |
| 91 | } | 91 | } |
