diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-24 14:41:52 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 12:48:19 -0700 |
| commit | d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165 (patch) | |
| tree | c6a100e5810ba96aba5b2bb8029d1b902d30c8c6 /src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs | |
| parent | 9787570331b511bab73ac8f4f38a3b8cfa053ca5 (diff) | |
| download | wix-d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165.tar.gz wix-d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165.tar.bz2 wix-d87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165.zip | |
The Great Tuple to Symbol File Rename (tm)
Diffstat (limited to 'src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs')
| -rw-r--r-- | src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs b/src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs new file mode 100644 index 00000000..287819ab --- /dev/null +++ b/src/WixToolset.Data/Symbols/ModuleComponentsSymbol.cs | |||
| @@ -0,0 +1,60 @@ | |||
| 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.Symbols; | ||
| 6 | |||
| 7 | public static partial class SymbolDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateSymbolDefinition ModuleComponents = new IntermediateSymbolDefinition( | ||
| 10 | SymbolDefinitionType.ModuleComponents, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.Component), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.ModuleID), IntermediateFieldType.String), | ||
| 15 | new IntermediateFieldDefinition(nameof(ModuleComponentsSymbolFields.Language), IntermediateFieldType.Number), | ||
| 16 | }, | ||
| 17 | typeof(ModuleComponentsSymbol)); | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | namespace WixToolset.Data.Symbols | ||
| 22 | { | ||
| 23 | public enum ModuleComponentsSymbolFields | ||
| 24 | { | ||
| 25 | Component, | ||
| 26 | ModuleID, | ||
| 27 | Language, | ||
| 28 | } | ||
| 29 | |||
| 30 | public class ModuleComponentsSymbol : IntermediateSymbol | ||
| 31 | { | ||
| 32 | public ModuleComponentsSymbol() : base(SymbolDefinitions.ModuleComponents, null, null) | ||
| 33 | { | ||
| 34 | } | ||
| 35 | |||
| 36 | public ModuleComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleComponents, sourceLineNumber, id) | ||
| 37 | { | ||
| 38 | } | ||
| 39 | |||
| 40 | public IntermediateField this[ModuleComponentsSymbolFields index] => this.Fields[(int)index]; | ||
| 41 | |||
| 42 | public string Component | ||
| 43 | { | ||
| 44 | get => (string)this.Fields[(int)ModuleComponentsSymbolFields.Component]; | ||
| 45 | set => this.Set((int)ModuleComponentsSymbolFields.Component, value); | ||
| 46 | } | ||
| 47 | |||
| 48 | public string ModuleID | ||
| 49 | { | ||
| 50 | get => (string)this.Fields[(int)ModuleComponentsSymbolFields.ModuleID]; | ||
| 51 | set => this.Set((int)ModuleComponentsSymbolFields.ModuleID, value); | ||
| 52 | } | ||
| 53 | |||
| 54 | public int Language | ||
| 55 | { | ||
| 56 | get => (int)this.Fields[(int)ModuleComponentsSymbolFields.Language]; | ||
| 57 | set => this.Set((int)ModuleComponentsSymbolFields.Language, value); | ||
| 58 | } | ||
| 59 | } | ||
| 60 | } \ No newline at end of file | ||
