1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// 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.
namespace WixToolset.Data
{
using WixToolset.Data.Tuples;
public static partial class TupleDefinitions
{
public static readonly IntermediateTupleDefinition ProgId = new IntermediateTupleDefinition(
TupleDefinitionType.ProgId,
new[]
{
new IntermediateFieldDefinition(nameof(ProgIdTupleFields.ProgId), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ProgIdTupleFields.ProgId_Parent), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ProgIdTupleFields.Class_), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ProgIdTupleFields.Description), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ProgIdTupleFields.Icon_), IntermediateFieldType.String),
new IntermediateFieldDefinition(nameof(ProgIdTupleFields.IconIndex), IntermediateFieldType.Number),
},
typeof(ProgIdTuple));
}
}
namespace WixToolset.Data.Tuples
{
public enum ProgIdTupleFields
{
ProgId,
ProgId_Parent,
Class_,
Description,
Icon_,
IconIndex,
}
public class ProgIdTuple : IntermediateTuple
{
public ProgIdTuple() : base(TupleDefinitions.ProgId, null, null)
{
}
public ProgIdTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ProgId, sourceLineNumber, id)
{
}
public IntermediateField this[ProgIdTupleFields index] => this.Fields[(int)index];
public string ProgId
{
get => (string)this.Fields[(int)ProgIdTupleFields.ProgId]?.Value;
set => this.Set((int)ProgIdTupleFields.ProgId, value);
}
public string ProgId_Parent
{
get => (string)this.Fields[(int)ProgIdTupleFields.ProgId_Parent]?.Value;
set => this.Set((int)ProgIdTupleFields.ProgId_Parent, value);
}
public string Class_
{
get => (string)this.Fields[(int)ProgIdTupleFields.Class_]?.Value;
set => this.Set((int)ProgIdTupleFields.Class_, value);
}
public string Description
{
get => (string)this.Fields[(int)ProgIdTupleFields.Description]?.Value;
set => this.Set((int)ProgIdTupleFields.Description, value);
}
public string Icon_
{
get => (string)this.Fields[(int)ProgIdTupleFields.Icon_]?.Value;
set => this.Set((int)ProgIdTupleFields.Icon_, value);
}
public int IconIndex
{
get => (int)this.Fields[(int)ProgIdTupleFields.IconIndex]?.Value;
set => this.Set((int)ProgIdTupleFields.IconIndex, value);
}
}
}
|