aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2020-06-24 14:41:52 -0700
committerRob Mensching <rob@firegiant.com>2020-06-25 12:48:19 -0700
commitd87492c97b5ac6eec1c86c4cc8b2b45e9f8ad165 (patch)
treec6a100e5810ba96aba5b2bb8029d1b902d30c8c6 /src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs
parent9787570331b511bab73ac8f4f38a3b8cfa053ca5 (diff)
downloadwix-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/FeatureComponentsSymbol.cs')
-rw-r--r--src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs b/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs
new file mode 100644
index 00000000..af51daed
--- /dev/null
+++ b/src/WixToolset.Data/Symbols/FeatureComponentsSymbol.cs
@@ -0,0 +1,52 @@
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
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition FeatureComponents = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.FeatureComponents,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.FeatureRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.ComponentRef), IntermediateFieldType.String),
15 },
16 typeof(FeatureComponentsSymbol));
17 }
18}
19
20namespace WixToolset.Data.Symbols
21{
22 public enum FeatureComponentsSymbolFields
23 {
24 FeatureRef,
25 ComponentRef,
26 }
27
28 public class FeatureComponentsSymbol : IntermediateSymbol
29 {
30 public FeatureComponentsSymbol() : base(SymbolDefinitions.FeatureComponents, null, null)
31 {
32 }
33
34 public FeatureComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FeatureComponents, sourceLineNumber, id)
35 {
36 }
37
38 public IntermediateField this[FeatureComponentsSymbolFields index] => this.Fields[(int)index];
39
40 public string FeatureRef
41 {
42 get => (string)this.Fields[(int)FeatureComponentsSymbolFields.FeatureRef];
43 set => this.Set((int)FeatureComponentsSymbolFields.FeatureRef, value);
44 }
45
46 public string ComponentRef
47 {
48 get => (string)this.Fields[(int)FeatureComponentsSymbolFields.ComponentRef];
49 set => this.Set((int)FeatureComponentsSymbolFields.ComponentRef, value);
50 }
51 }
52} \ No newline at end of file