aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2021-04-02 14:28:56 -0700
committerRob Mensching <rob@firegiant.com>2021-04-02 14:46:29 -0700
commit4bb99d4a7521f3182b3d8ea9833038dc067db118 (patch)
tree031c917bfc0fd3c513579646e92c3e9f823efba3 /src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs
parenta0dd2bc561ee6aa6b7aebedcff76c8a11e14bc9f (diff)
downloadwix-4bb99d4a7521f3182b3d8ea9833038dc067db118.tar.gz
wix-4bb99d4a7521f3182b3d8ea9833038dc067db118.tar.bz2
wix-4bb99d4a7521f3182b3d8ea9833038dc067db118.zip
Move codepage from section and to package, module, patch symbols
Contributes to wixtoolset/issues#5801
Diffstat (limited to 'src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs')
-rw-r--r--src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs b/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs
deleted file mode 100644
index 5f6ded09..00000000
--- a/src/WixToolset.Data/Symbols/ModuleSignatureSymbol.cs
+++ /dev/null
@@ -1,60 +0,0 @@
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
3namespace WixToolset.Data
4{
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition ModuleSignature = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.ModuleSignature,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.ModuleID), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.Language), IntermediateFieldType.Number),
15 new IntermediateFieldDefinition(nameof(ModuleSignatureSymbolFields.Version), IntermediateFieldType.String),
16 },
17 typeof(ModuleSignatureSymbol));
18 }
19}
20
21namespace WixToolset.Data.Symbols
22{
23 public enum ModuleSignatureSymbolFields
24 {
25 ModuleID,
26 Language,
27 Version,
28 }
29
30 public class ModuleSignatureSymbol : IntermediateSymbol
31 {
32 public ModuleSignatureSymbol() : base(SymbolDefinitions.ModuleSignature, null, null)
33 {
34 }
35
36 public ModuleSignatureSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ModuleSignature, sourceLineNumber, id)
37 {
38 }
39
40 public IntermediateField this[ModuleSignatureSymbolFields index] => this.Fields[(int)index];
41
42 public string ModuleID
43 {
44 get => (string)this.Fields[(int)ModuleSignatureSymbolFields.ModuleID];
45 set => this.Set((int)ModuleSignatureSymbolFields.ModuleID, value);
46 }
47
48 public int Language
49 {
50 get => (int)this.Fields[(int)ModuleSignatureSymbolFields.Language];
51 set => this.Set((int)ModuleSignatureSymbolFields.Language, value);
52 }
53
54 public string Version
55 {
56 get => (string)this.Fields[(int)ModuleSignatureSymbolFields.Version];
57 set => this.Set((int)ModuleSignatureSymbolFields.Version, value);
58 }
59 }
60} \ No newline at end of file