aboutsummaryrefslogtreecommitdiff
path: root/src/ext/NetFx/wixext/Symbols/NetFxNativeImageSymbol.cs
blob: 3803abd68ab0e6af60350b237f8982e1ade138e2 (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
48
49
50
51
52
53
54
55
56
57
58
// 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 WixToolset.Netfx.Symbols
{
    using WixToolset.Data;

    public enum NetFxNativeImageSymbolFields
    {
        FileRef,
        Priority,
        Attributes,
        ApplicationFileRef,
        ApplicationBaseDirectoryRef,
    }

    public class NetFxNativeImageSymbol : IntermediateSymbol
    {
        public NetFxNativeImageSymbol() : base(NetfxSymbolDefinitions.NetFxNativeImage, null, null)
        {
        }

        public NetFxNativeImageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(NetfxSymbolDefinitions.NetFxNativeImage, sourceLineNumber, id)
        {
        }

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

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

        public int Priority
        {
            get => this.Fields[(int)NetFxNativeImageSymbolFields.Priority].AsNumber();
            set => this.Set((int)NetFxNativeImageSymbolFields.Priority, value);
        }

        public int Attributes
        {
            get => this.Fields[(int)NetFxNativeImageSymbolFields.Attributes].AsNumber();
            set => this.Set((int)NetFxNativeImageSymbolFields.Attributes, value);
        }

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

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