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