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