main
cs 55 lines 1.98 KB
Raw
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.BootstrapperApplications
4 {
5 using WixToolset.Data;
6 using WixToolset.BootstrapperApplications.Symbols;
7
8 public static partial class BalSymbolDefinitions
9 {
10 public static readonly IntermediateSymbolDefinition WixBalBAFunctions = new IntermediateSymbolDefinition(
11 BalSymbolDefinitionType.WixBalBAFunctions.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(WixBalBAFunctionsSymbolFields.PayloadId), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(WixBalBAFunctionsSymbolFields.FilePath), IntermediateFieldType.String),
16 },
17 typeof(WixBalBAFunctionsSymbol));
18 }
19 }
20
21 namespace WixToolset.BootstrapperApplications.Symbols
22 {
23 using WixToolset.Data;
24
25 public enum WixBalBAFunctionsSymbolFields
26 {
27 PayloadId,
28 FilePath,
29 }
30
31 public class WixBalBAFunctionsSymbol : IntermediateSymbol
32 {
33 public WixBalBAFunctionsSymbol() : base(BalSymbolDefinitions.WixBalBAFunctions, null, null)
34 {
35 }
36
37 public WixBalBAFunctionsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFunctions, sourceLineNumber, id)
38 {
39 }
40
41 public IntermediateField this[WixBalBAFunctionsSymbolFields index] => this.Fields[(int)index];
42
43 public string PayloadId
44 {
45 get => this.Fields[(int)WixBalBAFunctionsSymbolFields.PayloadId].AsString();
46 set => this.Set((int)WixBalBAFunctionsSymbolFields.PayloadId, value);
47 }
48
49 public string FilePath
50 {
51 get => this.Fields[(int)WixBalBAFunctionsSymbolFields.FilePath].AsString();
52 set => this.Set((int)WixBalBAFunctionsSymbolFields.FilePath, value);
53 }
54 }
55 }