diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-04 11:41:55 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-04 11:41:55 -0700 |
commit | 337124bed6a57b40fca11c5c2f5b554f570522a6 (patch) | |
tree | 06e8552b11852309a2275e4bd63ee61320061876 /src/ext/ComPlus/wixext/Symbols/ComPlusSubscriptionPropertySymbol.cs | |
parent | eab57c2ddebc3dc8cebc22f5337f50062f415c0d (diff) | |
download | wix-337124bed6a57b40fca11c5c2f5b554f570522a6.tar.gz wix-337124bed6a57b40fca11c5c2f5b554f570522a6.tar.bz2 wix-337124bed6a57b40fca11c5c2f5b554f570522a6.zip |
Move ComPlus.wixext into ext
Diffstat (limited to 'src/ext/ComPlus/wixext/Symbols/ComPlusSubscriptionPropertySymbol.cs')
-rw-r--r-- | src/ext/ComPlus/wixext/Symbols/ComPlusSubscriptionPropertySymbol.cs | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/ext/ComPlus/wixext/Symbols/ComPlusSubscriptionPropertySymbol.cs b/src/ext/ComPlus/wixext/Symbols/ComPlusSubscriptionPropertySymbol.cs new file mode 100644 index 00000000..af995c3d --- /dev/null +++ b/src/ext/ComPlus/wixext/Symbols/ComPlusSubscriptionPropertySymbol.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 ComPlusSubscriptionProperty = new IntermediateSymbolDefinition( | ||
11 | ComPlusSymbolDefinitionType.ComPlusSubscriptionProperty.ToString(), | ||
12 | new[] | ||
13 | { | ||
14 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionPropertySymbolFields.SubscriptionRef), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionPropertySymbolFields.Name), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(ComPlusSubscriptionPropertySymbolFields.Value), IntermediateFieldType.String), | ||
17 | }, | ||
18 | typeof(ComPlusSubscriptionPropertySymbol)); | ||
19 | } | ||
20 | } | ||
21 | |||
22 | namespace WixToolset.ComPlus.Symbols | ||
23 | { | ||
24 | using WixToolset.Data; | ||
25 | |||
26 | public enum ComPlusSubscriptionPropertySymbolFields | ||
27 | { | ||
28 | SubscriptionRef, | ||
29 | Name, | ||
30 | Value, | ||
31 | } | ||
32 | |||
33 | public class ComPlusSubscriptionPropertySymbol : IntermediateSymbol | ||
34 | { | ||
35 | public ComPlusSubscriptionPropertySymbol() : base(ComPlusSymbolDefinitions.ComPlusSubscriptionProperty, null, null) | ||
36 | { | ||
37 | } | ||
38 | |||
39 | public ComPlusSubscriptionPropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(ComPlusSymbolDefinitions.ComPlusSubscriptionProperty, sourceLineNumber, id) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | public IntermediateField this[ComPlusSubscriptionPropertySymbolFields index] => this.Fields[(int)index]; | ||
44 | |||
45 | public string SubscriptionRef | ||
46 | { | ||
47 | get => this.Fields[(int)ComPlusSubscriptionPropertySymbolFields.SubscriptionRef].AsString(); | ||
48 | set => this.Set((int)ComPlusSubscriptionPropertySymbolFields.SubscriptionRef, value); | ||
49 | } | ||
50 | |||
51 | public string Name | ||
52 | { | ||
53 | get => this.Fields[(int)ComPlusSubscriptionPropertySymbolFields.Name].AsString(); | ||
54 | set => this.Set((int)ComPlusSubscriptionPropertySymbolFields.Name, value); | ||
55 | } | ||
56 | |||
57 | public string Value | ||
58 | { | ||
59 | get => this.Fields[(int)ComPlusSubscriptionPropertySymbolFields.Value].AsString(); | ||
60 | set => this.Set((int)ComPlusSubscriptionPropertySymbolFields.Value, value); | ||
61 | } | ||
62 | } | ||
63 | } \ No newline at end of file | ||