main
cs 52 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 MsiPatchOldAssemblyFile = new IntermediateSymbolDefinition(
10 SymbolDefinitionType.MsiPatchOldAssemblyFile,
11 new[]
12 {
13 new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyFileSymbolFields.FileRef), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(MsiPatchOldAssemblyFileSymbolFields.AssemblyRef), IntermediateFieldType.String),
15 },
16 typeof(MsiPatchOldAssemblyFileSymbol));
17 }
18 }
19
20 namespace WixToolset.Data.Symbols
21 {
22 public enum MsiPatchOldAssemblyFileSymbolFields
23 {
24 FileRef,
25 AssemblyRef,
26 }
27
28 public class MsiPatchOldAssemblyFileSymbol : IntermediateSymbol
29 {
30 public MsiPatchOldAssemblyFileSymbol() : base(SymbolDefinitions.MsiPatchOldAssemblyFile, null, null)
31 {
32 }
33
34 public MsiPatchOldAssemblyFileSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.MsiPatchOldAssemblyFile, sourceLineNumber, id)
35 {
36 }
37
38 public IntermediateField this[MsiPatchOldAssemblyFileSymbolFields index] => this.Fields[(int)index];
39
40 public string FileRef
41 {
42 get => (string)this.Fields[(int)MsiPatchOldAssemblyFileSymbolFields.FileRef];
43 set => this.Set((int)MsiPatchOldAssemblyFileSymbolFields.FileRef, value);
44 }
45
46 public string AssemblyRef
47 {
48 get => (string)this.Fields[(int)MsiPatchOldAssemblyFileSymbolFields.AssemblyRef];
49 set => this.Set((int)MsiPatchOldAssemblyFileSymbolFields.AssemblyRef, value);
50 }
51 }
52 }