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/ServiceInstallTuple.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/WixToolset.Data/Tuples/ServiceInstallTuple.cs') diff --git a/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs b/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs index 987dccd7..a055e46e 100644 --- a/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs +++ b/src/WixToolset.Data/Tuples/ServiceInstallTuple.cs @@ -88,13 +88,13 @@ namespace WixToolset.Data.Tuples public string Name { - get => (string)this.Fields[(int)ServiceInstallTupleFields.Name]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.Name]; set => this.Set((int)ServiceInstallTupleFields.Name, value); } public string DisplayName { - get => (string)this.Fields[(int)ServiceInstallTupleFields.DisplayName]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.DisplayName]; set => this.Set((int)ServiceInstallTupleFields.DisplayName, value); } @@ -118,43 +118,43 @@ namespace WixToolset.Data.Tuples public string LoadOrderGroup { - get => (string)this.Fields[(int)ServiceInstallTupleFields.LoadOrderGroup]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.LoadOrderGroup]; set => this.Set((int)ServiceInstallTupleFields.LoadOrderGroup, value); } public string Dependencies { - get => (string)this.Fields[(int)ServiceInstallTupleFields.Dependencies]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.Dependencies]; set => this.Set((int)ServiceInstallTupleFields.Dependencies, value); } public string StartName { - get => (string)this.Fields[(int)ServiceInstallTupleFields.StartName]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.StartName]; set => this.Set((int)ServiceInstallTupleFields.StartName, value); } public string Password { - get => (string)this.Fields[(int)ServiceInstallTupleFields.Password]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.Password]; set => this.Set((int)ServiceInstallTupleFields.Password, value); } public string Arguments { - get => (string)this.Fields[(int)ServiceInstallTupleFields.Arguments]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.Arguments]; set => this.Set((int)ServiceInstallTupleFields.Arguments, value); } public string Component_ { - get => (string)this.Fields[(int)ServiceInstallTupleFields.Component_]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.Component_]; set => this.Set((int)ServiceInstallTupleFields.Component_, value); } public string Description { - get => (string)this.Fields[(int)ServiceInstallTupleFields.Description]?.Value; + get => (string)this.Fields[(int)ServiceInstallTupleFields.Description]; set => this.Set((int)ServiceInstallTupleFields.Description, value); } -- cgit v1.2.3-55-g6feb