aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/PropertyTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2019-05-22 00:19:41 -0700
committerRob Mensching <rob@firegiant.com>2019-05-23 15:43:40 -0700
commit54541ef517190f37d0625627b028834f0871a959 (patch)
tree91ff4d813d5013260c04854a9ad24812ccdffa08 /src/WixToolset.Data/Tuples/PropertyTuple.cs
parent505fe69d85c90184cd37290ccb0120fec6074c20 (diff)
downloadwix-54541ef517190f37d0625627b028834f0871a959.tar.gz
wix-54541ef517190f37d0625627b028834f0871a959.tar.bz2
wix-54541ef517190f37d0625627b028834f0871a959.zip
Implement many more strong tuples
Also fixes several warnings.
Diffstat (limited to 'src/WixToolset.Data/Tuples/PropertyTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/PropertyTuple.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/WixToolset.Data/Tuples/PropertyTuple.cs b/src/WixToolset.Data/Tuples/PropertyTuple.cs
index 120b01fb..e6a5ceae 100644
--- a/src/WixToolset.Data/Tuples/PropertyTuple.cs
+++ b/src/WixToolset.Data/Tuples/PropertyTuple.cs
@@ -10,7 +10,6 @@ namespace WixToolset.Data
10 TupleDefinitionType.Property, 10 TupleDefinitionType.Property,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(PropertyTupleFields.Property), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(PropertyTupleFields.Value), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(PropertyTupleFields.Value), IntermediateFieldType.String),
15 }, 14 },
16 typeof(PropertyTuple)); 15 typeof(PropertyTuple));
@@ -21,7 +20,6 @@ namespace WixToolset.Data.Tuples
21{ 20{
22 public enum PropertyTupleFields 21 public enum PropertyTupleFields
23 { 22 {
24 Property,
25 Value, 23 Value,
26 } 24 }
27 25
@@ -37,15 +35,9 @@ namespace WixToolset.Data.Tuples
37 35
38 public IntermediateField this[PropertyTupleFields index] => this.Fields[(int)index]; 36 public IntermediateField this[PropertyTupleFields index] => this.Fields[(int)index];
39 37
40 public string Property
41 {
42 get => (string)this.Fields[(int)PropertyTupleFields.Property]?.Value;
43 set => this.Set((int)PropertyTupleFields.Property, value);
44 }
45
46 public string Value 38 public string Value
47 { 39 {
48 get => (string)this.Fields[(int)PropertyTupleFields.Value]?.Value; 40 get => (string)this.Fields[(int)PropertyTupleFields.Value];
49 set => this.Set((int)PropertyTupleFields.Value, value); 41 set => this.Set((int)PropertyTupleFields.Value, value);
50 } 42 }
51 } 43 }