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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// 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
{
using WixToolset.Data;
using WixToolset.Netfx.Symbols;
public static partial class NetfxSymbolDefinitions
{
public static readonly IntermediateSymbolDefinition NetFxNativeImage = new IntermediateSymbolDefinition(
NetfxSymbolDefinitionType.NetFxNativeImage.ToString(),
new[]
{
new IntermediateFieldDefinition(nameof(NetFxNativeImageSymbolFields.FileRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(NetFxNativeImageSymbolFields.Priority), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(NetFxNativeImageSymbolFields.Attributes), IntermediateFieldType.Number),
new IntermediateFieldDefinition(nameof(NetFxNativeImageSymbolFields.ApplicationFileRef), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(NetFxNativeImageSymbolFields.ApplicationBaseDirectoryRef), IntermediateFieldType.String),
},
typeof(NetFxNativeImageSymbol));
}
}
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);
}
}
}
|