From 505fe69d85c90184cd37290ccb0120fec6074c20 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 16 May 2019 12:18:36 -0700 Subject: Remove redundant `?.Value` from strongly typed accesses --- src/WixToolset.Data/Tuples/UpgradeTuple.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/WixToolset.Data/Tuples/UpgradeTuple.cs') diff --git a/src/WixToolset.Data/Tuples/UpgradeTuple.cs b/src/WixToolset.Data/Tuples/UpgradeTuple.cs index efb34733..03e5edd2 100644 --- a/src/WixToolset.Data/Tuples/UpgradeTuple.cs +++ b/src/WixToolset.Data/Tuples/UpgradeTuple.cs @@ -59,25 +59,25 @@ namespace WixToolset.Data.Tuples public string UpgradeCode { - get => (string)this.Fields[(int)UpgradeTupleFields.UpgradeCode]?.Value; + get => (string)this.Fields[(int)UpgradeTupleFields.UpgradeCode]; set => this.Set((int)UpgradeTupleFields.UpgradeCode, value); } public string VersionMin { - get => (string)this.Fields[(int)UpgradeTupleFields.VersionMin]?.Value; + get => (string)this.Fields[(int)UpgradeTupleFields.VersionMin]; set => this.Set((int)UpgradeTupleFields.VersionMin, value); } public string VersionMax { - get => (string)this.Fields[(int)UpgradeTupleFields.VersionMax]?.Value; + get => (string)this.Fields[(int)UpgradeTupleFields.VersionMax]; set => this.Set((int)UpgradeTupleFields.VersionMax, value); } public string Language { - get => (string)this.Fields[(int)UpgradeTupleFields.Language]?.Value; + get => (string)this.Fields[(int)UpgradeTupleFields.Language]; set => this.Set((int)UpgradeTupleFields.Language, value); } @@ -119,13 +119,13 @@ namespace WixToolset.Data.Tuples public string Remove { - get => (string)this.Fields[(int)UpgradeTupleFields.Remove]?.Value; + get => (string)this.Fields[(int)UpgradeTupleFields.Remove]; set => this.Set((int)UpgradeTupleFields.Remove, value); } public string ActionProperty { - get => (string)this.Fields[(int)UpgradeTupleFields.ActionProperty]?.Value; + get => (string)this.Fields[(int)UpgradeTupleFields.ActionProperty]; set => this.Set((int)UpgradeTupleFields.ActionProperty, value); } } -- cgit v1.2.3-55-g6feb