| 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 Example.Extension |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | |
| 7 | public enum ExampleSearchSymbolFields |
| 8 | { |
| 9 | SearchFor, |
| 10 | } |
| 11 | |
| 12 | public class ExampleSearchSymbol : IntermediateSymbol |
| 13 | { |
| 14 | public ExampleSearchSymbol() : base(ExampleSymbolDefinitions.ExampleSearch, null, null) |
| 15 | { |
| 16 | } |
| 17 | |
| 18 | public ExampleSearchSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ExampleSymbolDefinitions.ExampleSearch, sourceLineNumber, id) |
| 19 | { |
| 20 | } |
| 21 | |
| 22 | public IntermediateField this[ExampleSymbolFields index] => this.Fields[(int)index]; |
| 23 | |
| 24 | public string SearchFor |
| 25 | { |
| 26 | get => this.Fields[(int)ExampleSearchSymbolFields.SearchFor]?.AsString(); |
| 27 | set => this.Set((int)ExampleSearchSymbolFields.SearchFor, value); |
| 28 | } |
| 29 | } |
| 30 | } |