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