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