| 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.Util |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.Util.Symbols; |
| 7 | |
| 8 | public static partial class UtilSymbolDefinitions |
| 9 | { |
| 10 | public static readonly IntermediateSymbolDefinition WixWindowsFeatureSearch = new IntermediateSymbolDefinition( |
| 11 | UtilSymbolDefinitionType.WixWindowsFeatureSearch.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(WixWindowsFeatureSearchSymbolFields.Type), IntermediateFieldType.String), |
| 15 | }, |
| 16 | typeof(WixWindowsFeatureSearchSymbol)); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | namespace WixToolset.Util.Symbols |
| 21 | { |
| 22 | using WixToolset.Data; |
| 23 | |
| 24 | public enum WixWindowsFeatureSearchSymbolFields |
| 25 | { |
| 26 | Type, |
| 27 | } |
| 28 | |
| 29 | public class WixWindowsFeatureSearchSymbol : IntermediateSymbol |
| 30 | { |
| 31 | public WixWindowsFeatureSearchSymbol() : base(UtilSymbolDefinitions.WixWindowsFeatureSearch, null, null) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | public WixWindowsFeatureSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(UtilSymbolDefinitions.WixWindowsFeatureSearch, sourceLineNumber, id) |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | public IntermediateField this[WixWindowsFeatureSearchSymbolFields index] => this.Fields[(int)index]; |
| 40 | |
| 41 | public string Type |
| 42 | { |
| 43 | get => this.Fields[(int)WixWindowsFeatureSearchSymbolFields.Type].AsString(); |
| 44 | set => this.Set((int)WixWindowsFeatureSearchSymbolFields.Type, value); |
| 45 | } |
| 46 | } |
| 47 | } |