diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-11-01 10:56:09 -0700 |
| commit | 69b15d96cebdbb7201b1849b4f62786633d70b8d (patch) | |
| tree | 4b65de8679e4b4ab81b69edcccbac1ae9f55a16d /src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs | |
| parent | a8656a87887d6cb2c54f4bbeacee37f7074f1032 (diff) | |
| download | wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.gz wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.tar.bz2 wix-69b15d96cebdbb7201b1849b4f62786633d70b8d.zip | |
Introduce WiX Intermediate Representation
Diffstat (limited to 'src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs new file mode 100644 index 00000000..154aad67 --- /dev/null +++ b/src/WixToolset.Data/Tuples/RemoveRegistryTuple.cs | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | namespace WixToolset.Data | ||
| 4 | { | ||
| 5 | using WixToolset.Data.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition RemoveRegistry = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.RemoveRegistry, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.RemoveRegistry), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Root), IntermediateFieldType.Number), | ||
| 15 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Key), IntermediateFieldType.String), | ||
| 16 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Name), IntermediateFieldType.String), | ||
| 17 | new IntermediateFieldDefinition(nameof(RemoveRegistryTupleFields.Component_), IntermediateFieldType.String), | ||
| 18 | }, | ||
| 19 | typeof(RemoveRegistryTuple)); | ||
| 20 | } | ||
| 21 | } | ||
| 22 | |||
| 23 | namespace WixToolset.Data.Tuples | ||
| 24 | { | ||
| 25 | public enum RemoveRegistryTupleFields | ||
| 26 | { | ||
| 27 | RemoveRegistry, | ||
| 28 | Root, | ||
| 29 | Key, | ||
| 30 | Name, | ||
| 31 | Component_, | ||
| 32 | } | ||
| 33 | |||
| 34 | public class RemoveRegistryTuple : IntermediateTuple | ||
| 35 | { | ||
| 36 | public RemoveRegistryTuple() : base(TupleDefinitions.RemoveRegistry, null, null) | ||
| 37 | { | ||
| 38 | } | ||
| 39 | |||
| 40 | public RemoveRegistryTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.RemoveRegistry, sourceLineNumber, id) | ||
| 41 | { | ||
| 42 | } | ||
| 43 | |||
| 44 | public IntermediateField this[RemoveRegistryTupleFields index] => this.Fields[(int)index]; | ||
| 45 | |||
| 46 | public string RemoveRegistry | ||
| 47 | { | ||
| 48 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.RemoveRegistry]?.Value; | ||
| 49 | set => this.Set((int)RemoveRegistryTupleFields.RemoveRegistry, value); | ||
| 50 | } | ||
| 51 | |||
| 52 | public int Root | ||
| 53 | { | ||
| 54 | get => (int)this.Fields[(int)RemoveRegistryTupleFields.Root]?.Value; | ||
| 55 | set => this.Set((int)RemoveRegistryTupleFields.Root, value); | ||
| 56 | } | ||
| 57 | |||
| 58 | public string Key | ||
| 59 | { | ||
| 60 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.Key]?.Value; | ||
| 61 | set => this.Set((int)RemoveRegistryTupleFields.Key, value); | ||
| 62 | } | ||
| 63 | |||
| 64 | public string Name | ||
| 65 | { | ||
| 66 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.Name]?.Value; | ||
| 67 | set => this.Set((int)RemoveRegistryTupleFields.Name, value); | ||
| 68 | } | ||
| 69 | |||
| 70 | public string Component_ | ||
| 71 | { | ||
| 72 | get => (string)this.Fields[(int)RemoveRegistryTupleFields.Component_]?.Value; | ||
| 73 | set => this.Set((int)RemoveRegistryTupleFields.Component_, value); | ||
| 74 | } | ||
| 75 | } | ||
| 76 | } \ No newline at end of file | ||
