diff options
Diffstat (limited to 'src/wixext/Tuples/ComPlusComponentTuple.cs')
-rw-r--r-- | src/wixext/Tuples/ComPlusComponentTuple.cs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/wixext/Tuples/ComPlusComponentTuple.cs b/src/wixext/Tuples/ComPlusComponentTuple.cs new file mode 100644 index 00000000..923ff6e3 --- /dev/null +++ b/src/wixext/Tuples/ComPlusComponentTuple.cs | |||
@@ -0,0 +1,63 @@ | |||
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.ComPlus | ||
4 | { | ||
5 | using WixToolset.Data; | ||
6 | using WixToolset.ComPlus.Tuples; | ||
7 | |||
8 | public static partial class ComPlusTupleDefinitions | ||
9 | { | ||
10 | public static readonly IntermediateTupleDefinition ComPlusComponent = new IntermediateTupleDefinition( | ||
11 | ComPlusTupleDefinitionType.ComPlusComponent.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(ComPlusComponentTupleFields.ComPlusComponent), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(ComPlusComponentTupleFields.Assembly_), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(ComPlusComponentTupleFields.CLSID), IntermediateFieldType.String), | ||
17 | }, | ||
18 | typeof(ComPlusComponentTuple)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.ComPlus.Tuples | ||
23 | { | ||
24 | using WixToolset.Data; | ||
25 | |||
26 | public enum ComPlusComponentTupleFields | ||
27 | { | ||
28 | ComPlusComponent, | ||
29 | Assembly_, | ||
30 | CLSID, | ||
31 | } | ||
32 | |||
33 | public class ComPlusComponentTuple : IntermediateTuple | ||
34 | { | ||
35 | public ComPlusComponentTuple() : base(ComPlusTupleDefinitions.ComPlusComponent, null, null) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public ComPlusComponentTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ComPlusTupleDefinitions.ComPlusComponent, sourceLineNumber, id) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public IntermediateField this[ComPlusComponentTupleFields index] => this.Fields[(int)index]; | ||
44 | |||
45 | public string ComPlusComponent | ||
46 | { | ||
47 | get => this.Fields[(int)ComPlusComponentTupleFields.ComPlusComponent].AsString(); | ||
48 | set => this.Set((int)ComPlusComponentTupleFields.ComPlusComponent, value); | ||
49 | } | ||
50 | |||
51 | public string Assembly_ | ||
52 | { | ||
53 | get => this.Fields[(int)ComPlusComponentTupleFields.Assembly_].AsString(); | ||
54 | set => this.Set((int)ComPlusComponentTupleFields.Assembly_, value); | ||
55 | } | ||
56 | |||
57 | public string CLSID | ||
58 | { | ||
59 | get => this.Fields[(int)ComPlusComponentTupleFields.CLSID].AsString(); | ||
60 | set => this.Set((int)ComPlusComponentTupleFields.CLSID, value); | ||
61 | } | ||
62 | } | ||
63 | } \ No newline at end of file | ||