diff options
Diffstat (limited to 'src/wixext/Tuples/UserTuple.cs')
-rw-r--r-- | src/wixext/Tuples/UserTuple.cs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/wixext/Tuples/UserTuple.cs b/src/wixext/Tuples/UserTuple.cs index f11ed78b..5f00064b 100644 --- a/src/wixext/Tuples/UserTuple.cs +++ b/src/wixext/Tuples/UserTuple.cs | |||
@@ -3,29 +3,29 @@ | |||
3 | namespace WixToolset.Util | 3 | namespace WixToolset.Util |
4 | { | 4 | { |
5 | using WixToolset.Data; | 5 | using WixToolset.Data; |
6 | using WixToolset.Util.Tuples; | 6 | using WixToolset.Util.Symbols; |
7 | 7 | ||
8 | public static partial class UtilTupleDefinitions | 8 | public static partial class UtilSymbolDefinitions |
9 | { | 9 | { |
10 | public static readonly IntermediateTupleDefinition User = new IntermediateTupleDefinition( | 10 | public static readonly IntermediateSymbolDefinition User = new IntermediateSymbolDefinition( |
11 | UtilTupleDefinitionType.User.ToString(), | 11 | UtilSymbolDefinitionType.User.ToString(), |
12 | new[] | 12 | new[] |
13 | { | 13 | { |
14 | new IntermediateFieldDefinition(nameof(UserTupleFields.ComponentRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(UserSymbolFields.ComponentRef), IntermediateFieldType.String), |
15 | new IntermediateFieldDefinition(nameof(UserTupleFields.Name), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(UserSymbolFields.Name), IntermediateFieldType.String), |
16 | new IntermediateFieldDefinition(nameof(UserTupleFields.Domain), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(UserSymbolFields.Domain), IntermediateFieldType.String), |
17 | new IntermediateFieldDefinition(nameof(UserTupleFields.Password), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(UserSymbolFields.Password), IntermediateFieldType.String), |
18 | new IntermediateFieldDefinition(nameof(UserTupleFields.Attributes), IntermediateFieldType.Number), | 18 | new IntermediateFieldDefinition(nameof(UserSymbolFields.Attributes), IntermediateFieldType.Number), |
19 | }, | 19 | }, |
20 | typeof(UserTuple)); | 20 | typeof(UserSymbol)); |
21 | } | 21 | } |
22 | } | 22 | } |
23 | 23 | ||
24 | namespace WixToolset.Util.Tuples | 24 | namespace WixToolset.Util.Symbols |
25 | { | 25 | { |
26 | using WixToolset.Data; | 26 | using WixToolset.Data; |
27 | 27 | ||
28 | public enum UserTupleFields | 28 | public enum UserSymbolFields |
29 | { | 29 | { |
30 | ComponentRef, | 30 | ComponentRef, |
31 | Name, | 31 | Name, |
@@ -34,46 +34,46 @@ namespace WixToolset.Util.Tuples | |||
34 | Attributes, | 34 | Attributes, |
35 | } | 35 | } |
36 | 36 | ||
37 | public class UserTuple : IntermediateTuple | 37 | public class UserSymbol : IntermediateSymbol |
38 | { | 38 | { |
39 | public UserTuple() : base(UtilTupleDefinitions.User, null, null) | 39 | public UserSymbol() : base(UtilSymbolDefinitions.User, null, null) |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
43 | public UserTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilTupleDefinitions.User, sourceLineNumber, id) | 43 | public UserSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilSymbolDefinitions.User, sourceLineNumber, id) |
44 | { | 44 | { |
45 | } | 45 | } |
46 | 46 | ||
47 | public IntermediateField this[UserTupleFields index] => this.Fields[(int)index]; | 47 | public IntermediateField this[UserSymbolFields index] => this.Fields[(int)index]; |
48 | 48 | ||
49 | public string ComponentRef | 49 | public string ComponentRef |
50 | { | 50 | { |
51 | get => this.Fields[(int)UserTupleFields.ComponentRef].AsString(); | 51 | get => this.Fields[(int)UserSymbolFields.ComponentRef].AsString(); |
52 | set => this.Set((int)UserTupleFields.ComponentRef, value); | 52 | set => this.Set((int)UserSymbolFields.ComponentRef, value); |
53 | } | 53 | } |
54 | 54 | ||
55 | public string Name | 55 | public string Name |
56 | { | 56 | { |
57 | get => this.Fields[(int)UserTupleFields.Name].AsString(); | 57 | get => this.Fields[(int)UserSymbolFields.Name].AsString(); |
58 | set => this.Set((int)UserTupleFields.Name, value); | 58 | set => this.Set((int)UserSymbolFields.Name, value); |
59 | } | 59 | } |
60 | 60 | ||
61 | public string Domain | 61 | public string Domain |
62 | { | 62 | { |
63 | get => this.Fields[(int)UserTupleFields.Domain].AsString(); | 63 | get => this.Fields[(int)UserSymbolFields.Domain].AsString(); |
64 | set => this.Set((int)UserTupleFields.Domain, value); | 64 | set => this.Set((int)UserSymbolFields.Domain, value); |
65 | } | 65 | } |
66 | 66 | ||
67 | public string Password | 67 | public string Password |
68 | { | 68 | { |
69 | get => this.Fields[(int)UserTupleFields.Password].AsString(); | 69 | get => this.Fields[(int)UserSymbolFields.Password].AsString(); |
70 | set => this.Set((int)UserTupleFields.Password, value); | 70 | set => this.Set((int)UserSymbolFields.Password, value); |
71 | } | 71 | } |
72 | 72 | ||
73 | public int Attributes | 73 | public int Attributes |
74 | { | 74 | { |
75 | get => this.Fields[(int)UserTupleFields.Attributes].AsNumber(); | 75 | get => this.Fields[(int)UserSymbolFields.Attributes].AsNumber(); |
76 | set => this.Set((int)UserTupleFields.Attributes, value); | 76 | set => this.Set((int)UserSymbolFields.Attributes, value); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | } \ No newline at end of file | 79 | } \ No newline at end of file |