aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.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/WixDeltaPatchSymbolPathsTuple.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/WixDeltaPatchSymbolPathsTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs b/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs
index 9537db3a..13a2e1c9 100644
--- a/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs
+++ b/src/WixToolset.Data/Tuples/WixDeltaPatchSymbolPathsTuple.cs
@@ -12,8 +12,8 @@ namespace WixToolset.Data
12 TupleDefinitionType.WixDeltaPatchSymbolPaths, 12 TupleDefinitionType.WixDeltaPatchSymbolPaths,
13 new[] 13 new[]
14 { 14 {
15 new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsTupleFields.Id), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsTupleFields.SymbolType), IntermediateFieldType.Number),
16 new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsTupleFields.Type), IntermediateFieldType.String), 16 new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsTupleFields.SymbolId), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsTupleFields.SymbolPaths), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(WixDeltaPatchSymbolPathsTupleFields.SymbolPaths), IntermediateFieldType.String),
18 }, 18 },
19 typeof(WixDeltaPatchSymbolPathsTuple)); 19 typeof(WixDeltaPatchSymbolPathsTuple));
@@ -24,8 +24,8 @@ namespace WixToolset.Data.Tuples
24{ 24{
25 public enum WixDeltaPatchSymbolPathsTupleFields 25 public enum WixDeltaPatchSymbolPathsTupleFields
26 { 26 {
27 Id, 27 SymbolType,
28 Type, 28 SymbolId,
29 SymbolPaths, 29 SymbolPaths,
30 } 30 }
31 31
@@ -48,22 +48,22 @@ namespace WixToolset.Data.Tuples
48 { 48 {
49 } 49 }
50 50
51 public WixDeltaPatchSymbolPathsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixDeltaPatchSymbolPaths, sourceLineNumber, id) 51 public WixDeltaPatchSymbolPathsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixDeltaPatchSymbolPaths, sourceLineNumber, null)
52 { 52 {
53 } 53 }
54 54
55 public IntermediateField this[WixDeltaPatchSymbolPathsTupleFields index] => this.Fields[(int)index]; 55 public IntermediateField this[WixDeltaPatchSymbolPathsTupleFields index] => this.Fields[(int)index];
56 56
57 public string Id 57 public SymbolPathType SymbolType
58 { 58 {
59 get => (string)this.Fields[(int)WixDeltaPatchSymbolPathsTupleFields.Id]; 59 get => (SymbolPathType)this.Fields[(int)WixDeltaPatchSymbolPathsTupleFields.SymbolType].AsNumber();
60 set => this.Set((int)WixDeltaPatchSymbolPathsTupleFields.Id, value); 60 set => this.Set((int)WixDeltaPatchSymbolPathsTupleFields.SymbolType, (int)value);
61 } 61 }
62 62
63 public SymbolPathType Type 63 public string SymbolId
64 { 64 {
65 get => (SymbolPathType)Enum.Parse(typeof(SymbolPathType), (string)this.Fields[(int)WixDeltaPatchSymbolPathsTupleFields.Type], true); 65 get => (string)this.Fields[(int)WixDeltaPatchSymbolPathsTupleFields.SymbolId];
66 set => this.Set((int)WixDeltaPatchSymbolPathsTupleFields.Type, value.ToString()); 66 set => this.Set((int)WixDeltaPatchSymbolPathsTupleFields.SymbolId, value);
67 } 67 }
68 68
69 public string SymbolPaths 69 public string SymbolPaths