aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/IniFileTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/IniFileTuple.cs64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/WixToolset.Data/Tuples/IniFileTuple.cs b/src/WixToolset.Data/Tuples/IniFileTuple.cs
index 6aaa98c6..e23f6039 100644
--- a/src/WixToolset.Data/Tuples/IniFileTuple.cs
+++ b/src/WixToolset.Data/Tuples/IniFileTuple.cs
@@ -2,29 +2,29 @@
2 2
3namespace WixToolset.Data 3namespace WixToolset.Data
4{ 4{
5 using WixToolset.Data.Tuples; 5 using WixToolset.Data.Symbols;
6 6
7 public static partial class TupleDefinitions 7 public static partial class SymbolDefinitions
8 { 8 {
9 public static readonly IntermediateTupleDefinition IniFile = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition IniFile = new IntermediateSymbolDefinition(
10 TupleDefinitionType.IniFile, 10 SymbolDefinitionType.IniFile,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(IniFileTupleFields.FileName), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.FileName), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(IniFileTupleFields.DirProperty), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.DirProperty), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(IniFileTupleFields.Section), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Section), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(IniFileTupleFields.Key), IntermediateFieldType.String), 16 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Key), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(IniFileTupleFields.Value), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Value), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(IniFileTupleFields.Action), IntermediateFieldType.Number), 18 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.Action), IntermediateFieldType.Number),
19 new IntermediateFieldDefinition(nameof(IniFileTupleFields.ComponentRef), IntermediateFieldType.String), 19 new IntermediateFieldDefinition(nameof(IniFileSymbolFields.ComponentRef), IntermediateFieldType.String),
20 }, 20 },
21 typeof(IniFileTuple)); 21 typeof(IniFileSymbol));
22 } 22 }
23} 23}
24 24
25namespace WixToolset.Data.Tuples 25namespace WixToolset.Data.Symbols
26{ 26{
27 public enum IniFileTupleFields 27 public enum IniFileSymbolFields
28 { 28 {
29 FileName, 29 FileName,
30 DirProperty, 30 DirProperty,
@@ -35,58 +35,58 @@ namespace WixToolset.Data.Tuples
35 ComponentRef, 35 ComponentRef,
36 } 36 }
37 37
38 public class IniFileTuple : IntermediateTuple 38 public class IniFileSymbol : IntermediateSymbol
39 { 39 {
40 public IniFileTuple() : base(TupleDefinitions.IniFile, null, null) 40 public IniFileSymbol() : base(SymbolDefinitions.IniFile, null, null)
41 { 41 {
42 } 42 }
43 43
44 public IniFileTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.IniFile, sourceLineNumber, id) 44 public IniFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.IniFile, sourceLineNumber, id)
45 { 45 {
46 } 46 }
47 47
48 public IntermediateField this[IniFileTupleFields index] => this.Fields[(int)index]; 48 public IntermediateField this[IniFileSymbolFields index] => this.Fields[(int)index];
49 49
50 public string FileName 50 public string FileName
51 { 51 {
52 get => (string)this.Fields[(int)IniFileTupleFields.FileName]; 52 get => (string)this.Fields[(int)IniFileSymbolFields.FileName];
53 set => this.Set((int)IniFileTupleFields.FileName, value); 53 set => this.Set((int)IniFileSymbolFields.FileName, value);
54 } 54 }
55 55
56 public string DirProperty 56 public string DirProperty
57 { 57 {
58 get => (string)this.Fields[(int)IniFileTupleFields.DirProperty]; 58 get => (string)this.Fields[(int)IniFileSymbolFields.DirProperty];
59 set => this.Set((int)IniFileTupleFields.DirProperty, value); 59 set => this.Set((int)IniFileSymbolFields.DirProperty, value);
60 } 60 }
61 61
62 public string Section 62 public string Section
63 { 63 {
64 get => (string)this.Fields[(int)IniFileTupleFields.Section]; 64 get => (string)this.Fields[(int)IniFileSymbolFields.Section];
65 set => this.Set((int)IniFileTupleFields.Section, value); 65 set => this.Set((int)IniFileSymbolFields.Section, value);
66 } 66 }
67 67
68 public string Key 68 public string Key
69 { 69 {
70 get => (string)this.Fields[(int)IniFileTupleFields.Key]; 70 get => (string)this.Fields[(int)IniFileSymbolFields.Key];
71 set => this.Set((int)IniFileTupleFields.Key, value); 71 set => this.Set((int)IniFileSymbolFields.Key, value);
72 } 72 }
73 73
74 public string Value 74 public string Value
75 { 75 {
76 get => (string)this.Fields[(int)IniFileTupleFields.Value]; 76 get => (string)this.Fields[(int)IniFileSymbolFields.Value];
77 set => this.Set((int)IniFileTupleFields.Value, value); 77 set => this.Set((int)IniFileSymbolFields.Value, value);
78 } 78 }
79 79
80 public InifFileActionType Action 80 public InifFileActionType Action
81 { 81 {
82 get => (InifFileActionType)this.Fields[(int)IniFileTupleFields.Action]?.AsNumber(); 82 get => (InifFileActionType)this.Fields[(int)IniFileSymbolFields.Action]?.AsNumber();
83 set => this.Set((int)IniFileTupleFields.Action, (int)value); 83 set => this.Set((int)IniFileSymbolFields.Action, (int)value);
84 } 84 }
85 85
86 public string ComponentRef 86 public string ComponentRef
87 { 87 {
88 get => (string)this.Fields[(int)IniFileTupleFields.ComponentRef]; 88 get => (string)this.Fields[(int)IniFileSymbolFields.ComponentRef];
89 set => this.Set((int)IniFileTupleFields.ComponentRef, value); 89 set => this.Set((int)IniFileSymbolFields.ComponentRef, value);
90 } 90 }
91 } 91 }
92} \ No newline at end of file 92} \ No newline at end of file