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