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/WixComplexReferenceTuple.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/WixComplexReferenceTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs b/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs index 46de9aa9..3d573f7a 100644 --- a/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs +++ b/src/WixToolset.Data/Tuples/WixComplexReferenceTuple.cs | |||
| @@ -49,37 +49,37 @@ namespace WixToolset.Data.Tuples | |||
| 49 | 49 | ||
| 50 | public string Parent | 50 | public string Parent |
| 51 | { | 51 | { |
| 52 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.Parent]?.Value; | 52 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.Parent]; |
| 53 | set => this.Set((int)WixComplexReferenceTupleFields.Parent, value); | 53 | set => this.Set((int)WixComplexReferenceTupleFields.Parent, value); |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | public ComplexReferenceParentType ParentType | 56 | public ComplexReferenceParentType ParentType |
| 57 | { | 57 | { |
| 58 | get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixComplexReferenceTupleFields.ParentAttributes]?.Value, true); | 58 | get => (ComplexReferenceParentType)Enum.Parse(typeof(ComplexReferenceParentType), (string)this.Fields[(int)WixComplexReferenceTupleFields.ParentAttributes], true); |
| 59 | set => this.Set((int)WixComplexReferenceTupleFields.ParentAttributes, value.ToString()); | 59 | set => this.Set((int)WixComplexReferenceTupleFields.ParentAttributes, value.ToString()); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | public string ParentLanguage | 62 | public string ParentLanguage |
| 63 | { | 63 | { |
| 64 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.ParentLanguage]?.Value; | 64 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.ParentLanguage]; |
| 65 | set => this.Set((int)WixComplexReferenceTupleFields.ParentLanguage, value); | 65 | set => this.Set((int)WixComplexReferenceTupleFields.ParentLanguage, value); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | public string Child | 68 | public string Child |
| 69 | { | 69 | { |
| 70 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.Child]?.Value; | 70 | get => (string)this.Fields[(int)WixComplexReferenceTupleFields.Child]; |
| 71 | set => this.Set((int)WixComplexReferenceTupleFields.Child, value); | 71 | set => this.Set((int)WixComplexReferenceTupleFields.Child, value); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | public ComplexReferenceChildType ChildType | 74 | public ComplexReferenceChildType ChildType |
| 75 | { | 75 | { |
| 76 | get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixComplexReferenceTupleFields.ChildAttributes]?.Value, true); | 76 | get => (ComplexReferenceChildType)Enum.Parse(typeof(ComplexReferenceChildType), (string)this.Fields[(int)WixComplexReferenceTupleFields.ChildAttributes], true); |
| 77 | set => this.Set((int)WixComplexReferenceTupleFields.ChildAttributes, value.ToString()); | 77 | set => this.Set((int)WixComplexReferenceTupleFields.ChildAttributes, value.ToString()); |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | public bool IsPrimary | 80 | public bool IsPrimary |
| 81 | { | 81 | { |
| 82 | get => (bool)this.Fields[(int)WixComplexReferenceTupleFields.Attributes]?.Value; | 82 | get => (bool)this.Fields[(int)WixComplexReferenceTupleFields.Attributes]; |
| 83 | set => this.Set((int)WixComplexReferenceTupleFields.Attributes, value); | 83 | set => this.Set((int)WixComplexReferenceTupleFields.Attributes, value); |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
