aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ListBoxTuple.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-06-24 14:05:08 -0700
committerRob Mensching <rob@firegiant.com>2020-06-25 12:48:19 -0700
commit9787570331b511bab73ac8f4f38a3b8cfa053ca5 (patch)
tree508155e2cf4f6bafeef2be1059da547291025352 /src/WixToolset.Data/Tuples/ListBoxTuple.cs
parent2bcc21d5c2d27e578f59f905f6acd0979b78aa9d (diff)
downloadwix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.tar.gz
wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.tar.bz2
wix-9787570331b511bab73ac8f4f38a3b8cfa053ca5.zip
The Great Tuple to Symbol Rename (tm)
Diffstat (limited to 'src/WixToolset.Data/Tuples/ListBoxTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/ListBoxTuple.cs46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/WixToolset.Data/Tuples/ListBoxTuple.cs b/src/WixToolset.Data/Tuples/ListBoxTuple.cs
index c25f1728..174327d1 100644
--- a/src/WixToolset.Data/Tuples/ListBoxTuple.cs
+++ b/src/WixToolset.Data/Tuples/ListBoxTuple.cs
@@ -2,26 +2,26 @@
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 ListBox = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition ListBox = new IntermediateSymbolDefinition(
10 TupleDefinitionType.ListBox, 10 SymbolDefinitionType.ListBox,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(ListBoxTupleFields.Property), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Property), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ListBoxTupleFields.Order), IntermediateFieldType.Number), 14 new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Order), IntermediateFieldType.Number),
15 new IntermediateFieldDefinition(nameof(ListBoxTupleFields.Value), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Value), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(ListBoxTupleFields.Text), IntermediateFieldType.String), 16 new IntermediateFieldDefinition(nameof(ListBoxSymbolFields.Text), IntermediateFieldType.String),
17 }, 17 },
18 typeof(ListBoxTuple)); 18 typeof(ListBoxSymbol));
19 } 19 }
20} 20}
21 21
22namespace WixToolset.Data.Tuples 22namespace WixToolset.Data.Symbols
23{ 23{
24 public enum ListBoxTupleFields 24 public enum ListBoxSymbolFields
25 { 25 {
26 Property, 26 Property,
27 Order, 27 Order,
@@ -29,40 +29,40 @@ namespace WixToolset.Data.Tuples
29 Text, 29 Text,
30 } 30 }
31 31
32 public class ListBoxTuple : IntermediateTuple 32 public class ListBoxSymbol : IntermediateSymbol
33 { 33 {
34 public ListBoxTuple() : base(TupleDefinitions.ListBox, null, null) 34 public ListBoxSymbol() : base(SymbolDefinitions.ListBox, null, null)
35 { 35 {
36 } 36 }
37 37
38 public ListBoxTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ListBox, sourceLineNumber, id) 38 public ListBoxSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ListBox, sourceLineNumber, id)
39 { 39 {
40 } 40 }
41 41
42 public IntermediateField this[ListBoxTupleFields index] => this.Fields[(int)index]; 42 public IntermediateField this[ListBoxSymbolFields index] => this.Fields[(int)index];
43 43
44 public string Property 44 public string Property
45 { 45 {
46 get => (string)this.Fields[(int)ListBoxTupleFields.Property]; 46 get => (string)this.Fields[(int)ListBoxSymbolFields.Property];
47 set => this.Set((int)ListBoxTupleFields.Property, value); 47 set => this.Set((int)ListBoxSymbolFields.Property, value);
48 } 48 }
49 49
50 public int Order 50 public int Order
51 { 51 {
52 get => (int)this.Fields[(int)ListBoxTupleFields.Order]; 52 get => (int)this.Fields[(int)ListBoxSymbolFields.Order];
53 set => this.Set((int)ListBoxTupleFields.Order, value); 53 set => this.Set((int)ListBoxSymbolFields.Order, value);
54 } 54 }
55 55
56 public string Value 56 public string Value
57 { 57 {
58 get => (string)this.Fields[(int)ListBoxTupleFields.Value]; 58 get => (string)this.Fields[(int)ListBoxSymbolFields.Value];
59 set => this.Set((int)ListBoxTupleFields.Value, value); 59 set => this.Set((int)ListBoxSymbolFields.Value, value);
60 } 60 }
61 61
62 public string Text 62 public string Text
63 { 63 {
64 get => (string)this.Fields[(int)ListBoxTupleFields.Text]; 64 get => (string)this.Fields[(int)ListBoxSymbolFields.Text];
65 set => this.Set((int)ListBoxTupleFields.Text, value); 65 set => this.Set((int)ListBoxSymbolFields.Text, value);
66 } 66 }
67 } 67 }
68} \ No newline at end of file 68} \ No newline at end of file