aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/WixPropertyTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/WixPropertyTuple.cs46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/WixToolset.Data/Tuples/WixPropertyTuple.cs b/src/WixToolset.Data/Tuples/WixPropertyTuple.cs
index abadd947..17cf59ce 100644
--- a/src/WixToolset.Data/Tuples/WixPropertyTuple.cs
+++ b/src/WixToolset.Data/Tuples/WixPropertyTuple.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 WixProperty = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition WixProperty = new IntermediateSymbolDefinition(
10 TupleDefinitionType.WixProperty, 10 SymbolDefinitionType.WixProperty,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(WixPropertyTupleFields.PropertyRef), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.PropertyRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixPropertyTupleFields.Admin), IntermediateFieldType.Bool), 14 new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Admin), IntermediateFieldType.Bool),
15 new IntermediateFieldDefinition(nameof(WixPropertyTupleFields.Hidden), IntermediateFieldType.Bool), 15 new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Hidden), IntermediateFieldType.Bool),
16 new IntermediateFieldDefinition(nameof(WixPropertyTupleFields.Secure), IntermediateFieldType.Bool), 16 new IntermediateFieldDefinition(nameof(WixPropertySymbolFields.Secure), IntermediateFieldType.Bool),
17 }, 17 },
18 typeof(WixPropertyTuple)); 18 typeof(WixPropertySymbol));
19 } 19 }
20} 20}
21 21
22namespace WixToolset.Data.Tuples 22namespace WixToolset.Data.Symbols
23{ 23{
24 public enum WixPropertyTupleFields 24 public enum WixPropertySymbolFields
25 { 25 {
26 PropertyRef, 26 PropertyRef,
27 Admin, 27 Admin,
@@ -29,40 +29,40 @@ namespace WixToolset.Data.Tuples
29 Secure, 29 Secure,
30 } 30 }
31 31
32 public class WixPropertyTuple : IntermediateTuple 32 public class WixPropertySymbol : IntermediateSymbol
33 { 33 {
34 public WixPropertyTuple() : base(TupleDefinitions.WixProperty, null, null) 34 public WixPropertySymbol() : base(SymbolDefinitions.WixProperty, null, null)
35 { 35 {
36 } 36 }
37 37
38 public WixPropertyTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixProperty, sourceLineNumber, id) 38 public WixPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixProperty, sourceLineNumber, id)
39 { 39 {
40 } 40 }
41 41
42 public IntermediateField this[WixPropertyTupleFields index] => this.Fields[(int)index]; 42 public IntermediateField this[WixPropertySymbolFields index] => this.Fields[(int)index];
43 43
44 public string PropertyRef 44 public string PropertyRef
45 { 45 {
46 get => (string)this.Fields[(int)WixPropertyTupleFields.PropertyRef]; 46 get => (string)this.Fields[(int)WixPropertySymbolFields.PropertyRef];
47 set => this.Set((int)WixPropertyTupleFields.PropertyRef, value); 47 set => this.Set((int)WixPropertySymbolFields.PropertyRef, value);
48 } 48 }
49 49
50 public bool Admin 50 public bool Admin
51 { 51 {
52 get => (bool)this.Fields[(int)WixPropertyTupleFields.Admin]; 52 get => (bool)this.Fields[(int)WixPropertySymbolFields.Admin];
53 set => this.Set((int)WixPropertyTupleFields.Admin, value); 53 set => this.Set((int)WixPropertySymbolFields.Admin, value);
54 } 54 }
55 55
56 public bool Hidden 56 public bool Hidden
57 { 57 {
58 get => (bool)this.Fields[(int)WixPropertyTupleFields.Hidden]; 58 get => (bool)this.Fields[(int)WixPropertySymbolFields.Hidden];
59 set => this.Set((int)WixPropertyTupleFields.Hidden, value); 59 set => this.Set((int)WixPropertySymbolFields.Hidden, value);
60 } 60 }
61 61
62 public bool Secure 62 public bool Secure
63 { 63 {
64 get => (bool)this.Fields[(int)WixPropertyTupleFields.Secure]; 64 get => (bool)this.Fields[(int)WixPropertySymbolFields.Secure];
65 set => this.Set((int)WixPropertyTupleFields.Secure, value); 65 set => this.Set((int)WixPropertySymbolFields.Secure, value);
66 } 66 }
67 } 67 }
68} \ No newline at end of file 68} \ No newline at end of file