diff options
Diffstat (limited to 'src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs')
-rw-r--r-- | src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs b/src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs new file mode 100644 index 00000000..b09cb191 --- /dev/null +++ b/src/ext/Bal/wixext/Symbols/WixBalPackageInfoSymbol.cs | |||
@@ -0,0 +1,55 @@ | |||
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.Bal | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.Bal.Symbols; | ||
7 | |||
8 | public static partial class BalSymbolDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateSymbolDefinition WixBalPackageInfo = new IntermediateSymbolDefinition( | ||
11 | BalSymbolDefinitionType.WixBalPackageInfo.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.PackageId), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(WixBalPackageInfoSymbolFields.DisplayInternalUICondition), IntermediateFieldType.String), | ||
16 | }, | ||
17 | typeof(WixBalPackageInfoSymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Bal.Symbols | ||
22 | { | ||
23 | using WixToolset.Data; | ||
24 | |||
25 | public enum WixBalPackageInfoSymbolFields | ||
26 | { | ||
27 | PackageId, | ||
28 | DisplayInternalUICondition, | ||
29 | } | ||
30 | |||
31 | public class WixBalPackageInfoSymbol : IntermediateSymbol | ||
32 | { | ||
33 | public WixBalPackageInfoSymbol() : base(BalSymbolDefinitions.WixBalPackageInfo, null, null) | ||
34 | { | ||
35 | } | ||
36 | |||
37 | public WixBalPackageInfoSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalPackageInfo, sourceLineNumber, id) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | public IntermediateField this[WixBalPackageInfoSymbolFields index] => this.Fields[(int)index]; | ||
42 | |||
43 | public string PackageId | ||
44 | { | ||
45 | get => this.Fields[(int)WixBalPackageInfoSymbolFields.PackageId].AsString(); | ||
46 | set => this.Set((int)WixBalPackageInfoSymbolFields.PackageId, value); | ||
47 | } | ||
48 | |||
49 | public string DisplayInternalUICondition | ||
50 | { | ||
51 | get => this.Fields[(int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition].AsString(); | ||
52 | set => this.Set((int)WixBalPackageInfoSymbolFields.DisplayInternalUICondition, value); | ||
53 | } | ||
54 | } | ||
55 | } | ||