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/DialogTuple.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/WixToolset.Data/Tuples/DialogTuple.cs') diff --git a/src/WixToolset.Data/Tuples/DialogTuple.cs b/src/WixToolset.Data/Tuples/DialogTuple.cs index d66c3b19..bc803d68 100644 --- a/src/WixToolset.Data/Tuples/DialogTuple.cs +++ b/src/WixToolset.Data/Tuples/DialogTuple.cs @@ -73,25 +73,25 @@ namespace WixToolset.Data.Tuples public int HCentering { - get => (int)this.Fields[(int)DialogTupleFields.HCentering]?.Value; + get => (int)this.Fields[(int)DialogTupleFields.HCentering]; set => this.Set((int)DialogTupleFields.HCentering, value); } public int VCentering { - get => (int)this.Fields[(int)DialogTupleFields.VCentering]?.Value; + get => (int)this.Fields[(int)DialogTupleFields.VCentering]; set => this.Set((int)DialogTupleFields.VCentering, value); } public int Width { - get => (int)this.Fields[(int)DialogTupleFields.Width]?.Value; + get => (int)this.Fields[(int)DialogTupleFields.Width]; set => this.Set((int)DialogTupleFields.Width, value); } public int Height { - get => (int)this.Fields[(int)DialogTupleFields.Height]?.Value; + get => (int)this.Fields[(int)DialogTupleFields.Height]; set => this.Set((int)DialogTupleFields.Height, value); } @@ -163,25 +163,25 @@ namespace WixToolset.Data.Tuples public string Title { - get => (string)this.Fields[(int)DialogTupleFields.Title]?.Value; + get => (string)this.Fields[(int)DialogTupleFields.Title]; set => this.Set((int)DialogTupleFields.Title, value); } public string Control_First { - get => (string)this.Fields[(int)DialogTupleFields.Control_First]?.Value; + get => (string)this.Fields[(int)DialogTupleFields.Control_First]; set => this.Set((int)DialogTupleFields.Control_First, value); } public string Control_Default { - get => (string)this.Fields[(int)DialogTupleFields.Control_Default]?.Value; + get => (string)this.Fields[(int)DialogTupleFields.Control_Default]; set => this.Set((int)DialogTupleFields.Control_Default, value); } public string Control_Cancel { - get => (string)this.Fields[(int)DialogTupleFields.Control_Cancel]?.Value; + get => (string)this.Fields[(int)DialogTupleFields.Control_Cancel]; set => this.Set((int)DialogTupleFields.Control_Cancel, value); } } -- cgit v1.2.3-55-g6feb