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