main
cs 60 lines 2.1 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.BootstrapperApplications
4 {
5 using System;
6 using WixToolset.Data;
7 using WixToolset.BootstrapperApplications.Symbols;
8
9 public static partial class BalSymbolDefinitions
10 {
11 [Obsolete]
12 public static readonly IntermediateSymbolDefinition WixBalBAFactoryAssembly = new IntermediateSymbolDefinition(
13 BalSymbolDefinitionType.WixBalBAFactoryAssembly.ToString(),
14 new[]
15 {
16 new IntermediateFieldDefinition(nameof(WixBalBAFactorySymbolFields.PayloadId), IntermediateFieldType.String),
17 new IntermediateFieldDefinition(nameof(WixBalBAFactorySymbolFields.FilePath), IntermediateFieldType.String),
18 },
19 typeof(WixBalBAFactoryAssemblySymbol));
20 }
21 }
22
23 namespace WixToolset.BootstrapperApplications.Symbols
24 {
25 using System;
26 using WixToolset.Data;
27
28 [Obsolete]
29 public enum WixBalBAFactorySymbolFields
30 {
31 PayloadId,
32 FilePath,
33 }
34
35 [Obsolete]
36 public class WixBalBAFactoryAssemblySymbol : IntermediateSymbol
37 {
38 public WixBalBAFactoryAssemblySymbol() : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, null, null)
39 {
40 }
41
42 public WixBalBAFactoryAssemblySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(BalSymbolDefinitions.WixBalBAFactoryAssembly, sourceLineNumber, id)
43 {
44 }
45
46 public IntermediateField this[WixBalBAFactorySymbolFields index] => this.Fields[(int)index];
47
48 public string PayloadId
49 {
50 get => this.Fields[(int)WixBalBAFactorySymbolFields.PayloadId].AsString();
51 set => this.Set((int)WixBalBAFactorySymbolFields.PayloadId, value);
52 }
53
54 public string FilePath
55 {
56 get => this.Fields[(int)WixBalBAFactorySymbolFields.FilePath].AsString();
57 set => this.Set((int)WixBalBAFactorySymbolFields.FilePath, value);
58 }
59 }
60 }