aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/RemoveRegistryTuple.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/RemoveRegistryTuple.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/RemoveRegistryTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs
index f4ec17bf..a797cd33 100644
--- a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs
+++ b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs
@@ -2,27 +2,27 @@
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 RemoveRegistry = new IntermediateTupleDefinition( 9 public static readonly IntermediateSymbolDefinition RemoveRegistry = new IntermediateSymbolDefinition(
10 TupleDefinitionType.RemoveRegistry, 10 SymbolDefinitionType.RemoveRegistry,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Root), IntermediateFieldType.Number), 13 new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Root), IntermediateFieldType.Number),
14 new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Key), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Key), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Name), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Name), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Action), IntermediateFieldType.Number), 16 new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.Action), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.ComponentRef), IntermediateFieldType.String), 17 new IntermediateFieldDefinition(nameof(RemoveRegistrySymbolFields.ComponentRef), IntermediateFieldType.String),
18 }, 18 },
19 typeof(RemoveRegistryTuple)); 19 typeof(RemoveRegistrySymbol));
20 } 20 }
21} 21}
22 22
23namespace WixToolset.Data.Tuples 23namespace WixToolset.Data.Symbols
24{ 24{
25 public enum RemoveRegistryTupleFields 25 public enum RemoveRegistrySymbolFields
26 { 26 {
27 Root, 27 Root,
28 Key, 28 Key,
@@ -37,46 +37,46 @@ namespace WixToolset.Data.Tuples
37 RemoveOnUninstall 37 RemoveOnUninstall
38 }; 38 };
39 39
40 public class RemoveRegistryTuple : IntermediateTuple 40 public class RemoveRegistrySymbol : IntermediateSymbol
41 { 41 {
42 public RemoveRegistryTuple() : base(TupleDefinitions.RemoveRegistry, null, null) 42 public RemoveRegistrySymbol() : base(SymbolDefinitions.RemoveRegistry, null, null)
43 { 43 {
44 } 44 }
45 45
46 public RemoveRegistryTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.RemoveRegistry, sourceLineNumber, id) 46 public RemoveRegistrySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.RemoveRegistry, sourceLineNumber, id)
47 { 47 {
48 } 48 }
49 49
50 public IntermediateField this[RemoveRegistryTupleFields index] => this.Fields[(int)index]; 50 public IntermediateField this[RemoveRegistrySymbolFields index] => this.Fields[(int)index];
51 51
52 public RegistryRootType Root 52 public RegistryRootType Root
53 { 53 {
54 get => (RegistryRootType)this.Fields[(int)RemoveRegistryTupleFields.Root].AsNumber(); 54 get => (RegistryRootType)this.Fields[(int)RemoveRegistrySymbolFields.Root].AsNumber();
55 set => this.Set((int)RemoveRegistryTupleFields.Root, (int)value); 55 set => this.Set((int)RemoveRegistrySymbolFields.Root, (int)value);
56 } 56 }
57 57
58 public string Key 58 public string Key
59 { 59 {
60 get => (string)this.Fields[(int)RemoveRegistryTupleFields.Key]; 60 get => (string)this.Fields[(int)RemoveRegistrySymbolFields.Key];
61 set => this.Set((int)RemoveRegistryTupleFields.Key, value); 61 set => this.Set((int)RemoveRegistrySymbolFields.Key, value);
62 } 62 }
63 63
64 public string Name 64 public string Name
65 { 65 {
66 get => (string)this.Fields[(int)RemoveRegistryTupleFields.Name]; 66 get => (string)this.Fields[(int)RemoveRegistrySymbolFields.Name];
67 set => this.Set((int)RemoveRegistryTupleFields.Name, value); 67 set => this.Set((int)RemoveRegistrySymbolFields.Name, value);
68 } 68 }
69 69
70 public RemoveRegistryActionType Action 70 public RemoveRegistryActionType Action
71 { 71 {
72 get => (RemoveRegistryActionType)this.Fields[(int)RemoveRegistryTupleFields.Action].AsNumber(); 72 get => (RemoveRegistryActionType)this.Fields[(int)RemoveRegistrySymbolFields.Action].AsNumber();
73 set => this.Set((int)RemoveRegistryTupleFields.Action, (int)value); 73 set => this.Set((int)RemoveRegistrySymbolFields.Action, (int)value);
74 } 74 }
75 75
76 public string ComponentRef 76 public string ComponentRef
77 { 77 {
78 get => (string)this.Fields[(int)RemoveRegistryTupleFields.ComponentRef]; 78 get => (string)this.Fields[(int)RemoveRegistrySymbolFields.ComponentRef];
79 set => this.Set((int)RemoveRegistryTupleFields.ComponentRef, value); 79 set => this.Set((int)RemoveRegistrySymbolFields.ComponentRef, value);
80 } 80 }
81 } 81 }
82} \ No newline at end of file 82} \ No newline at end of file