aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs')
-rw-r--r--src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs b/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs
new file mode 100644
index 00000000..d8e9db3f
--- /dev/null
+++ b/src/WixToolset.Data/Symbols/WixBundleSlipstreamMspSymbol.cs
@@ -0,0 +1,52 @@
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 WixBundleSlipstreamMsp = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.WixBundleSlipstreamMsp,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixBundleSlipstreamMspSymbolFields.TargetPackageRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixBundleSlipstreamMspSymbolFields.MspPackageRef), IntermediateFieldType.String),
15 },
16 typeof(WixBundleSlipstreamMspSymbol));
17 }
18}
19
20namespace WixToolset.Data.Symbols
21{
22 public enum WixBundleSlipstreamMspSymbolFields
23 {
24 TargetPackageRef,
25 MspPackageRef,
26 }
27
28 public class WixBundleSlipstreamMspSymbol : IntermediateSymbol
29 {
30 public WixBundleSlipstreamMspSymbol() : base(SymbolDefinitions.WixBundleSlipstreamMsp, null, null)
31 {
32 }
33
34 public WixBundleSlipstreamMspSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundleSlipstreamMsp, sourceLineNumber, id)
35 {
36 }
37
38 public IntermediateField this[WixBundleSlipstreamMspSymbolFields index] => this.Fields[(int)index];
39
40 public string TargetPackageRef
41 {
42 get => (string)this.Fields[(int)WixBundleSlipstreamMspSymbolFields.TargetPackageRef];
43 set => this.Set((int)WixBundleSlipstreamMspSymbolFields.TargetPackageRef, value);
44 }
45
46 public string MspPackageRef
47 {
48 get => (string)this.Fields[(int)WixBundleSlipstreamMspSymbolFields.MspPackageRef];
49 set => this.Set((int)WixBundleSlipstreamMspSymbolFields.MspPackageRef, value);
50 }
51 }
52}