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/TypeLibTuple.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/WixToolset.Data/Tuples/TypeLibTuple.cs') diff --git a/src/WixToolset.Data/Tuples/TypeLibTuple.cs b/src/WixToolset.Data/Tuples/TypeLibTuple.cs index 7bd26bf3..de2a8823 100644 --- a/src/WixToolset.Data/Tuples/TypeLibTuple.cs +++ b/src/WixToolset.Data/Tuples/TypeLibTuple.cs @@ -51,49 +51,49 @@ namespace WixToolset.Data.Tuples public string LibID { - get => (string)this.Fields[(int)TypeLibTupleFields.LibID]?.Value; + get => (string)this.Fields[(int)TypeLibTupleFields.LibID]; set => this.Set((int)TypeLibTupleFields.LibID, value); } public int Language { - get => (int)this.Fields[(int)TypeLibTupleFields.Language]?.Value; + get => (int)this.Fields[(int)TypeLibTupleFields.Language]; set => this.Set((int)TypeLibTupleFields.Language, value); } public string Component_ { - get => (string)this.Fields[(int)TypeLibTupleFields.Component_]?.Value; + get => (string)this.Fields[(int)TypeLibTupleFields.Component_]; set => this.Set((int)TypeLibTupleFields.Component_, value); } public int Version { - get => (int)this.Fields[(int)TypeLibTupleFields.Version]?.Value; + get => (int)this.Fields[(int)TypeLibTupleFields.Version]; set => this.Set((int)TypeLibTupleFields.Version, value); } public string Description { - get => (string)this.Fields[(int)TypeLibTupleFields.Description]?.Value; + get => (string)this.Fields[(int)TypeLibTupleFields.Description]; set => this.Set((int)TypeLibTupleFields.Description, value); } public string Directory_ { - get => (string)this.Fields[(int)TypeLibTupleFields.Directory_]?.Value; + get => (string)this.Fields[(int)TypeLibTupleFields.Directory_]; set => this.Set((int)TypeLibTupleFields.Directory_, value); } public string Feature_ { - get => (string)this.Fields[(int)TypeLibTupleFields.Feature_]?.Value; + get => (string)this.Fields[(int)TypeLibTupleFields.Feature_]; set => this.Set((int)TypeLibTupleFields.Feature_, value); } public int Cost { - get => (int)this.Fields[(int)TypeLibTupleFields.Cost]?.Value; + get => (int)this.Fields[(int)TypeLibTupleFields.Cost]; set => this.Set((int)TypeLibTupleFields.Cost, value); } } -- cgit v1.2.3-55-g6feb