diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:47:54 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-25 14:50:31 -0700 |
| commit | fb2436ef2e5ba9b5c16c7f0fdc948fc6d1faf8b5 (patch) | |
| tree | 6cd8ca9a9c5a459940c36b8b69b89977f0f5e7df /src/test/Example.Extension/ExampleSymbol.cs | |
| parent | 38afa9e7bc7eacc021f8805f607368a05751e3c3 (diff) | |
| download | wix-fb2436ef2e5ba9b5c16c7f0fdc948fc6d1faf8b5.tar.gz wix-fb2436ef2e5ba9b5c16c7f0fdc948fc6d1faf8b5.tar.bz2 wix-fb2436ef2e5ba9b5c16c7f0fdc948fc6d1faf8b5.zip | |
The Great Tuple to Symbol File Rename (tm)
Diffstat (limited to 'src/test/Example.Extension/ExampleSymbol.cs')
| -rw-r--r-- | src/test/Example.Extension/ExampleSymbol.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/Example.Extension/ExampleSymbol.cs b/src/test/Example.Extension/ExampleSymbol.cs new file mode 100644 index 00000000..314087e9 --- /dev/null +++ b/src/test/Example.Extension/ExampleSymbol.cs | |||
| @@ -0,0 +1,30 @@ | |||
| 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 ExampleSymbolFields | ||
| 8 | { | ||
| 9 | Value, | ||
| 10 | } | ||
| 11 | |||
| 12 | public class ExampleSymbol : IntermediateSymbol | ||
| 13 | { | ||
| 14 | public ExampleSymbol() : base(ExampleSymbolDefinitions.Example, null, null) | ||
| 15 | { | ||
| 16 | } | ||
| 17 | |||
| 18 | public ExampleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ExampleSymbolDefinitions.Example, sourceLineNumber, id) | ||
| 19 | { | ||
| 20 | } | ||
| 21 | |||
| 22 | public IntermediateField this[ExampleSymbolFields index] => this.Fields[(int)index]; | ||
| 23 | |||
| 24 | public string Value | ||
| 25 | { | ||
| 26 | get => this.Fields[(int)ExampleSymbolFields.Value]?.AsString(); | ||
| 27 | set => this.Set((int)ExampleSymbolFields.Value, value); | ||
| 28 | } | ||
| 29 | } | ||
| 30 | } | ||
