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/PatchTuple.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/WixToolset.Data/Tuples/PatchTuple.cs') diff --git a/src/WixToolset.Data/Tuples/PatchTuple.cs b/src/WixToolset.Data/Tuples/PatchTuple.cs index 268307c7..ca313410 100644 --- a/src/WixToolset.Data/Tuples/PatchTuple.cs +++ b/src/WixToolset.Data/Tuples/PatchTuple.cs @@ -47,37 +47,37 @@ namespace WixToolset.Data.Tuples public string File_ { - get => (string)this.Fields[(int)PatchTupleFields.File_]?.Value; + get => (string)this.Fields[(int)PatchTupleFields.File_]; set => this.Set((int)PatchTupleFields.File_, value); } public int Sequence { - get => (int)this.Fields[(int)PatchTupleFields.Sequence]?.Value; + get => (int)this.Fields[(int)PatchTupleFields.Sequence]; set => this.Set((int)PatchTupleFields.Sequence, value); } public int PatchSize { - get => (int)this.Fields[(int)PatchTupleFields.PatchSize]?.Value; + get => (int)this.Fields[(int)PatchTupleFields.PatchSize]; set => this.Set((int)PatchTupleFields.PatchSize, value); } public int Attributes { - get => (int)this.Fields[(int)PatchTupleFields.Attributes]?.Value; + get => (int)this.Fields[(int)PatchTupleFields.Attributes]; set => this.Set((int)PatchTupleFields.Attributes, value); } public string Header { - get => (string)this.Fields[(int)PatchTupleFields.Header]?.Value; + get => (string)this.Fields[(int)PatchTupleFields.Header]; set => this.Set((int)PatchTupleFields.Header, value); } public string StreamRef_ { - get => (string)this.Fields[(int)PatchTupleFields.StreamRef_]?.Value; + get => (string)this.Fields[(int)PatchTupleFields.StreamRef_]; set => this.Set((int)PatchTupleFields.StreamRef_, value); } } -- cgit v1.2.3-55-g6feb