diff options
Diffstat (limited to 'src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs')
-rw-r--r-- | src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs b/src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs new file mode 100644 index 00000000..ac2b0dc4 --- /dev/null +++ b/src/WixToolset.Data/Symbols/MsiPatchSequenceSymbol.cs | |||
@@ -0,0 +1,68 @@ | |||
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.Symbols; | ||
6 | |||
7 | public static partial class SymbolDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateSymbolDefinition MsiPatchSequence = new IntermediateSymbolDefinition( | ||
10 | SymbolDefinitionType.MsiPatchSequence, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.PatchFamily), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.ProductCode), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.Sequence), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(MsiPatchSequenceSymbolFields.Attributes), IntermediateFieldType.Number), | ||
17 | }, | ||
18 | typeof(MsiPatchSequenceSymbol)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.Data.Symbols | ||
23 | { | ||
24 | public enum MsiPatchSequenceSymbolFields | ||
25 | { | ||
26 | PatchFamily, | ||
27 | ProductCode, | ||
28 | Sequence, | ||
29 | Attributes, | ||
30 | } | ||
31 | |||
32 | public class MsiPatchSequenceSymbol : IntermediateSymbol | ||
33 | { | ||
34 | public MsiPatchSequenceSymbol() : base(SymbolDefinitions.MsiPatchSequence, null, null) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | public MsiPatchSequenceSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchSequence, sourceLineNumber, id) | ||
39 | { | ||
40 | } | ||
41 | |||
42 | public IntermediateField this[MsiPatchSequenceSymbolFields index] => this.Fields[(int)index]; | ||
43 | |||
44 | public string PatchFamily | ||
45 | { | ||
46 | get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.PatchFamily]; | ||
47 | set => this.Set((int)MsiPatchSequenceSymbolFields.PatchFamily, value); | ||
48 | } | ||
49 | |||
50 | public string ProductCode | ||
51 | { | ||
52 | get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.ProductCode]; | ||
53 | set => this.Set((int)MsiPatchSequenceSymbolFields.ProductCode, value); | ||
54 | } | ||
55 | |||
56 | public string Sequence | ||
57 | { | ||
58 | get => (string)this.Fields[(int)MsiPatchSequenceSymbolFields.Sequence]; | ||
59 | set => this.Set((int)MsiPatchSequenceSymbolFields.Sequence, value); | ||
60 | } | ||
61 | |||
62 | public int? Attributes | ||
63 | { | ||
64 | get => (int?)this.Fields[(int)MsiPatchSequenceSymbolFields.Attributes]; | ||
65 | set => this.Set((int)MsiPatchSequenceSymbolFields.Attributes, value); | ||
66 | } | ||
67 | } | ||
68 | } \ No newline at end of file | ||