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