main
cs 68 lines 2.55 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 MsiEmbeddedChainer = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.MsiEmbeddedChainer,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Condition), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.CommandLine), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Source), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(MsiEmbeddedChainerSymbolFields.Type), IntermediateFieldType.Number),
17 },
18 typeof(MsiEmbeddedChainerSymbol));
19 }
20 }
21
22 namespace WixToolset.Data.Symbols
23 {
24 public enum MsiEmbeddedChainerSymbolFields
25 {
26 Condition,
27 CommandLine,
28 Source,
29 Type,
30 }
31
32 public class MsiEmbeddedChainerSymbol : IntermediateSymbol
33 {
34 public MsiEmbeddedChainerSymbol() : base(SymbolDefinitions.MsiEmbeddedChainer, null, null)
35 {
36 }
37
38 public MsiEmbeddedChainerSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiEmbeddedChainer, sourceLineNumber, id)
39 {
40 }
41
42 public IntermediateField this[MsiEmbeddedChainerSymbolFields index] => this.Fields[(int)index];
43
44 public string Condition
45 {
46 get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Condition];
47 set => this.Set((int)MsiEmbeddedChainerSymbolFields.Condition, value);
48 }
49
50 public string CommandLine
51 {
52 get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.CommandLine];
53 set => this.Set((int)MsiEmbeddedChainerSymbolFields.CommandLine, value);
54 }
55
56 public string Source
57 {
58 get => (string)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Source];
59 set => this.Set((int)MsiEmbeddedChainerSymbolFields.Source, value);
60 }
61
62 public int Type
63 {
64 get => (int)this.Fields[(int)MsiEmbeddedChainerSymbolFields.Type];
65 set => this.Set((int)MsiEmbeddedChainerSymbolFields.Type, value);
66 }
67 }
68 }