| 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 WixBootstrapperApplication = new IntermediateSymbolDefinition( |
| 10 | SymbolDefinitionType.WixBootstrapperApplication, |
| 11 | new IntermediateFieldDefinition[] |
| 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationSymbolFields.ExePayloadRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixBootstrapperApplicationSymbolFields.Secondary), IntermediateFieldType.Number), |
| 15 | }, |
| 16 | typeof(WixBootstrapperApplicationSymbol)); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | namespace WixToolset.Data.Symbols |
| 21 | { |
| 22 | public enum WixBootstrapperApplicationSymbolFields |
| 23 | { |
| 24 | ExePayloadRef, |
| 25 | Secondary |
| 26 | } |
| 27 | |
| 28 | public class WixBootstrapperApplicationSymbol : IntermediateSymbol |
| 29 | { |
| 30 | public WixBootstrapperApplicationSymbol() : base(SymbolDefinitions.WixBootstrapperApplication, null, null) |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | public WixBootstrapperApplicationSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBootstrapperApplication, sourceLineNumber, id) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | public IntermediateField this[WixBootstrapperApplicationSymbolFields index] => this.Fields[(int)index]; |
| 39 | |
| 40 | public string ExePayloadRef |
| 41 | { |
| 42 | get => (string)this.Fields[(int)WixBootstrapperApplicationSymbolFields.ExePayloadRef]; |
| 43 | set => this.Set((int)WixBootstrapperApplicationSymbolFields.ExePayloadRef, value); |
| 44 | } |
| 45 | |
| 46 | public bool? Secondary |
| 47 | { |
| 48 | get => (bool?)this.Fields[(int)WixBootstrapperApplicationSymbolFields.Secondary]; |
| 49 | set => this.Set((int)WixBootstrapperApplicationSymbolFields.Secondary, value); |
| 50 | } |
| 51 | } |
| 52 | } |