aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs')
-rw-r--r--src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs
new file mode 100644
index 00000000..48415228
--- /dev/null
+++ b/src/WixToolset.Data/Symbols/WixBundleCatalogSymbol.cs
@@ -0,0 +1,44 @@
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 WixBundleCatalog = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.WixBundleCatalog,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixBundleCatalogSymbolFields.PayloadRef), IntermediateFieldType.String),
14 },
15 typeof(WixBundleCatalogSymbol));
16 }
17}
18
19namespace WixToolset.Data.Symbols
20{
21 public enum WixBundleCatalogSymbolFields
22 {
23 PayloadRef,
24 }
25
26 public class WixBundleCatalogSymbol : IntermediateSymbol
27 {
28 public WixBundleCatalogSymbol() : base(SymbolDefinitions.WixBundleCatalog, null, null)
29 {
30 }
31
32 public WixBundleCatalogSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleCatalog, sourceLineNumber, id)
33 {
34 }
35
36 public IntermediateField this[WixBundleCatalogSymbolFields index] => this.Fields[(int)index];
37
38 public string PayloadRef
39 {
40 get => (string)this.Fields[(int)WixBundleCatalogSymbolFields.PayloadRef];
41 set => this.Set((int)WixBundleCatalogSymbolFields.PayloadRef, value);
42 }
43 }
44}