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