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