aboutsummaryrefslogtreecommitdiff
path: root/src/test/burn/ForTestingUseOnlyExtension/Symbols/ForTestingUseOnlyBundleSymbol.cs
blob: a17dfe3166c607ece22e04935a80585faa85bde8 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// 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 ForTestingUseOnly
{
    using WixToolset.Data;
    using ForTestingUseOnly.Symbols;

    public static partial class ForTestingUseOnlySymbolDefinitions
    {
        public static readonly IntermediateSymbolDefinition ForTestingUseOnlyBundle = new IntermediateSymbolDefinition(
            ForTestingUseOnlySymbolDefinitionType.ForTestingUseOnlyBundle.ToString(),
            new[]
            {
                new IntermediateFieldDefinition(nameof(ForTestingUseOnlyBundleSymbolFields.BundleId), IntermediateFieldType.String),
            },
            typeof(ForTestingUseOnlyBundleSymbol));
    }
}

namespace ForTestingUseOnly.Symbols
{
    using WixToolset.Data;

    public enum ForTestingUseOnlyBundleSymbolFields
    {
        BundleId,
    }

    public class ForTestingUseOnlyBundleSymbol : IntermediateSymbol
    {
        public ForTestingUseOnlyBundleSymbol() : base(ForTestingUseOnlySymbolDefinitions.ForTestingUseOnlyBundle, null, null)
        {
        }

        public ForTestingUseOnlyBundleSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ForTestingUseOnlySymbolDefinitions.ForTestingUseOnlyBundle, sourceLineNumber, id)
        {
        }

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

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