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