aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/ProgIdTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/Tuples/ProgIdTuple.cs84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/ProgIdTuple.cs b/src/WixToolset.Data/Tuples/ProgIdTuple.cs
new file mode 100644
index 00000000..a1713392
--- /dev/null
+++ b/src/WixToolset.Data/Tuples/ProgIdTuple.cs
@@ -0,0 +1,84 @@
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 ProgId = new IntermediateTupleDefinition(
10 TupleDefinitionType.ProgId,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(ProgIdTupleFields.ProgId), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(ProgIdTupleFields.ProgId_Parent), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(ProgIdTupleFields.Class_), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(ProgIdTupleFields.Description), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(ProgIdTupleFields.Icon_), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(ProgIdTupleFields.IconIndex), IntermediateFieldType.Number),
19 },
20 typeof(ProgIdTuple));
21 }
22}
23
24namespace WixToolset.Data.Tuples
25{
26 public enum ProgIdTupleFields
27 {
28 ProgId,
29 ProgId_Parent,
30 Class_,
31 Description,
32 Icon_,
33 IconIndex,
34 }
35
36 public class ProgIdTuple : IntermediateTuple
37 {
38 public ProgIdTuple() : base(TupleDefinitions.ProgId, null, null)
39 {
40 }
41
42 public ProgIdTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ProgId, sourceLineNumber, id)
43 {
44 }
45
46 public IntermediateField this[ProgIdTupleFields index] => this.Fields[(int)index];
47
48 public string ProgId
49 {
50 get => (string)this.Fields[(int)ProgIdTupleFields.ProgId]?.Value;
51 set => this.Set((int)ProgIdTupleFields.ProgId, value);
52 }
53
54 public string ProgId_Parent
55 {
56 get => (string)this.Fields[(int)ProgIdTupleFields.ProgId_Parent]?.Value;
57 set => this.Set((int)ProgIdTupleFields.ProgId_Parent, value);
58 }
59
60 public string Class_
61 {
62 get => (string)this.Fields[(int)ProgIdTupleFields.Class_]?.Value;
63 set => this.Set((int)ProgIdTupleFields.Class_, value);
64 }
65
66 public string Description
67 {
68 get => (string)this.Fields[(int)ProgIdTupleFields.Description]?.Value;
69 set => this.Set((int)ProgIdTupleFields.Description, value);
70 }
71
72 public string Icon_
73 {
74 get => (string)this.Fields[(int)ProgIdTupleFields.Icon_]?.Value;
75 set => this.Set((int)ProgIdTupleFields.Icon_, value);
76 }
77
78 public int IconIndex
79 {
80 get => (int)this.Fields[(int)ProgIdTupleFields.IconIndex]?.Value;
81 set => this.Set((int)ProgIdTupleFields.IconIndex, value);
82 }
83 }
84} \ No newline at end of file