aboutsummaryrefslogtreecommitdiff
path: root/src/test/Example.Extension/ExampleTuple.cs
blob: 314087e95143410a175c93cf575a442f80cc66f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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.

namespace Example.Extension
{
    using WixToolset.Data;

    public enum ExampleSymbolFields
    {
        Value,
    }

    public class ExampleSymbol : IntermediateSymbol
    {
        public ExampleSymbol() : base(ExampleSymbolDefinitions.Example, null, null)
        {
        }

        public ExampleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ExampleSymbolDefinitions.Example, sourceLineNumber, id)
        {
        }

        public IntermediateField this[ExampleSymbolFields index] => this.Fields[(int)index];

        public string Value
        {
            get => this.Fields[(int)ExampleSymbolFields.Value]?.AsString();
            set => this.Set((int)ExampleSymbolFields.Value, value);
        }
    }
}