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