aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/CheckBoxTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/CheckBoxTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/CheckBoxTuple.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/WixToolset.Data/Tuples/CheckBoxTuple.cs b/src/WixToolset.Data/Tuples/CheckBoxTuple.cs
index b35ff1f0..cd6355c4 100644
--- a/src/WixToolset.Data/Tuples/CheckBoxTuple.cs
+++ b/src/WixToolset.Data/Tuples/CheckBoxTuple.cs
@@ -2,51 +2,51 @@
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 CheckBox = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition CheckBox = new IntermediateSymbolDefinition(
10 TupleDefinitionType.CheckBox, 10 SymbolDefinitionType.CheckBox,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(CheckBoxTupleFields.Property), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(CheckBoxSymbolFields.Property), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(CheckBoxTupleFields.Value), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(CheckBoxSymbolFields.Value), IntermediateFieldType.String),
15 }, 15 },
16 typeof(CheckBoxTuple)); 16 typeof(CheckBoxSymbol));
17 } 17 }
18} 18}
19 19
20namespace WixToolset.Data.Tuples 20namespace WixToolset.Data.Symbols
21{ 21{
22 public enum CheckBoxTupleFields 22 public enum CheckBoxSymbolFields
23 { 23 {
24 Property, 24 Property,
25 Value, 25 Value,
26 } 26 }
27 27
28 public class CheckBoxTuple : IntermediateTuple 28 public class CheckBoxSymbol : IntermediateSymbol
29 { 29 {
30 public CheckBoxTuple() : base(TupleDefinitions.CheckBox, null, null) 30 public CheckBoxSymbol() : base(SymbolDefinitions.CheckBox, null, null)
31 { 31 {
32 } 32 }
33 33
34 public CheckBoxTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.CheckBox, sourceLineNumber, id) 34 public CheckBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.CheckBox, sourceLineNumber, id)
35 { 35 {
36 } 36 }
37 37
38 public IntermediateField this[CheckBoxTupleFields index] => this.Fields[(int)index]; 38 public IntermediateField this[CheckBoxSymbolFields index] => this.Fields[(int)index];
39 39
40 public string Property 40 public string Property
41 { 41 {
42 get => (string)this.Fields[(int)CheckBoxTupleFields.Property]; 42 get => (string)this.Fields[(int)CheckBoxSymbolFields.Property];
43 set => this.Set((int)CheckBoxTupleFields.Property, value); 43 set => this.Set((int)CheckBoxSymbolFields.Property, value);
44 } 44 }
45 45
46 public string Value 46 public string Value
47 { 47 {
48 get => (string)this.Fields[(int)CheckBoxTupleFields.Value]; 48 get => (string)this.Fields[(int)CheckBoxSymbolFields.Value];
49 set => this.Set((int)CheckBoxTupleFields.Value, value); 49 set => this.Set((int)CheckBoxSymbolFields.Value, value);
50 } 50 }
51 } 51 }
52} \ No newline at end of file 52} \ No newline at end of file