main
cs 54 lines 1.94 KB
Raw
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.Data
4 {
5 using WixToolset.Data.Symbols;
6
7 public static partial class SymbolDefinitions
8 {
9 public static readonly IntermediateSymbolDefinition WixSuppressAction = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.WixSuppressAction,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(WixSuppressActionSymbolFields.SequenceTable), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(WixSuppressActionSymbolFields.Action), IntermediateFieldType.String),
15 },
16 typeof(WixSuppressActionSymbol));
17 }
18 }
19
20 namespace WixToolset.Data.Symbols
21 {
22 using System;
23
24 public enum WixSuppressActionSymbolFields
25 {
26 SequenceTable,
27 Action,
28 }
29
30 public class WixSuppressActionSymbol : IntermediateSymbol
31 {
32 public WixSuppressActionSymbol() : base(SymbolDefinitions.WixSuppressAction, null, null)
33 {
34 }
35
36 public WixSuppressActionSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixSuppressAction, sourceLineNumber, id)
37 {
38 }
39
40 public IntermediateField this[WixSuppressActionSymbolFields index] => this.Fields[(int)index];
41
42 public SequenceTable SequenceTable
43 {
44 get => (SequenceTable)Enum.Parse(typeof(SequenceTable), (string)this.Fields[(int)WixSuppressActionSymbolFields.SequenceTable]);
45 set => this.Set((int)WixSuppressActionSymbolFields.SequenceTable, value.ToString());
46 }
47
48 public string Action
49 {
50 get => (string)this.Fields[(int)WixSuppressActionSymbolFields.Action];
51 set => this.Set((int)WixSuppressActionSymbolFields.Action, value);
52 }
53 }
54 }