diff options
Diffstat (limited to 'src/ext/NetFx/wixext/Symbols/NetFxNativeImageSymbol.cs')
-rw-r--r-- | src/ext/NetFx/wixext/Symbols/NetFxNativeImageSymbol.cs | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/ext/NetFx/wixext/Symbols/NetFxNativeImageSymbol.cs b/src/ext/NetFx/wixext/Symbols/NetFxNativeImageSymbol.cs new file mode 100644 index 00000000..3803abd6 --- /dev/null +++ b/src/ext/NetFx/wixext/Symbols/NetFxNativeImageSymbol.cs | |||
@@ -0,0 +1,58 @@ | |||
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 WixToolset.Netfx.Symbols | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | |||
7 | public enum NetFxNativeImageSymbolFields | ||
8 | { | ||
9 | FileRef, | ||
10 | Priority, | ||
11 | Attributes, | ||
12 | ApplicationFileRef, | ||
13 | ApplicationBaseDirectoryRef, | ||
14 | } | ||
15 | |||
16 | public class NetFxNativeImageSymbol : IntermediateSymbol | ||
17 | { | ||
18 | public NetFxNativeImageSymbol() : base(NetfxSymbolDefinitions.NetFxNativeImage, null, null) | ||
19 | { | ||
20 | } | ||
21 | |||
22 | public NetFxNativeImageSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(NetfxSymbolDefinitions.NetFxNativeImage, sourceLineNumber, id) | ||
23 | { | ||
24 | } | ||
25 | |||
26 | public IntermediateField this[NetFxNativeImageSymbolFields index] => this.Fields[(int)index]; | ||
27 | |||
28 | public string FileRef | ||
29 | { | ||
30 | get => this.Fields[(int)NetFxNativeImageSymbolFields.FileRef].AsString(); | ||
31 | set => this.Set((int)NetFxNativeImageSymbolFields.FileRef, value); | ||
32 | } | ||
33 | |||
34 | public int Priority | ||
35 | { | ||
36 | get => this.Fields[(int)NetFxNativeImageSymbolFields.Priority].AsNumber(); | ||
37 | set => this.Set((int)NetFxNativeImageSymbolFields.Priority, value); | ||
38 | } | ||
39 | |||
40 | public int Attributes | ||
41 | { | ||
42 | get => this.Fields[(int)NetFxNativeImageSymbolFields.Attributes].AsNumber(); | ||
43 | set => this.Set((int)NetFxNativeImageSymbolFields.Attributes, value); | ||
44 | } | ||
45 | |||
46 | public string ApplicationFileRef | ||
47 | { | ||
48 | get => this.Fields[(int)NetFxNativeImageSymbolFields.ApplicationFileRef].AsString(); | ||
49 | set => this.Set((int)NetFxNativeImageSymbolFields.ApplicationFileRef, value); | ||
50 | } | ||
51 | |||
52 | public string ApplicationBaseDirectoryRef | ||
53 | { | ||
54 | get => this.Fields[(int)NetFxNativeImageSymbolFields.ApplicationBaseDirectoryRef].AsString(); | ||
55 | set => this.Set((int)NetFxNativeImageSymbolFields.ApplicationBaseDirectoryRef, value); | ||
56 | } | ||
57 | } | ||
58 | } \ No newline at end of file | ||