diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Tuples/MsiAssemblyTuple.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiAssemblyTuple.cs b/src/WixToolset.Data/Tuples/MsiAssemblyTuple.cs new file mode 100644 index 00000000..0cd814d8 --- /dev/null +++ b/src/WixToolset.Data/Tuples/MsiAssemblyTuple.cs | |||
@@ -0,0 +1,76 @@ | |||
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.Data | ||
4 | { | ||
5 | using WixToolset.Data.Tuples; | ||
6 | |||
7 | public static partial class TupleDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateTupleDefinition MsiAssembly = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType.MsiAssembly, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(MsiAssemblyTupleFields.Component_), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(MsiAssemblyTupleFields.Feature_), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(MsiAssemblyTupleFields.File_Manifest), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(MsiAssemblyTupleFields.File_Application), IntermediateFieldType.String), | ||
17 | new IntermediateFieldDefinition(nameof(MsiAssemblyTupleFields.Attributes), IntermediateFieldType.Number), | ||
18 | }, | ||
19 | typeof(MsiAssemblyTuple)); | ||
20 | } | ||
21 | } | ||
22 | |||
23 | namespace WixToolset.Data.Tuples | ||
24 | { | ||
25 | public enum MsiAssemblyTupleFields | ||
26 | { | ||
27 | Component_, | ||
28 | Feature_, | ||
29 | File_Manifest, | ||
30 | File_Application, | ||
31 | Attributes, | ||
32 | } | ||
33 | |||
34 | public class MsiAssemblyTuple : IntermediateTuple | ||
35 | { | ||
36 | public MsiAssemblyTuple() : base(TupleDefinitions.MsiAssembly, null, null) | ||
37 | { | ||
38 | } | ||
39 | |||
40 | public MsiAssemblyTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.MsiAssembly, sourceLineNumber, id) | ||
41 | { | ||
42 | } | ||
43 | |||
44 | public IntermediateField this[MsiAssemblyTupleFields index] => this.Fields[(int)index]; | ||
45 | |||
46 | public string Component_ | ||
47 | { | ||
48 | get => (string)this.Fields[(int)MsiAssemblyTupleFields.Component_]?.Value; | ||
49 | set => this.Set((int)MsiAssemblyTupleFields.Component_, value); | ||
50 | } | ||
51 | |||
52 | public string Feature_ | ||
53 | { | ||
54 | get => (string)this.Fields[(int)MsiAssemblyTupleFields.Feature_]?.Value; | ||
55 | set => this.Set((int)MsiAssemblyTupleFields.Feature_, value); | ||
56 | } | ||
57 | |||
58 | public string File_Manifest | ||
59 | { | ||
60 | get => (string)this.Fields[(int)MsiAssemblyTupleFields.File_Manifest]?.Value; | ||
61 | set => this.Set((int)MsiAssemblyTupleFields.File_Manifest, value); | ||
62 | } | ||
63 | |||
64 | public string File_Application | ||
65 | { | ||
66 | get => (string)this.Fields[(int)MsiAssemblyTupleFields.File_Application]?.Value; | ||
67 | set => this.Set((int)MsiAssemblyTupleFields.File_Application, value); | ||
68 | } | ||
69 | |||
70 | public int Attributes | ||
71 | { | ||
72 | get => (int)this.Fields[(int)MsiAssemblyTupleFields.Attributes]?.Value; | ||
73 | set => this.Set((int)MsiAssemblyTupleFields.Attributes, value); | ||
74 | } | ||
75 | } | ||
76 | } \ No newline at end of file | ||