| 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.Netfx |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.Netfx.Symbols; |
| 7 | |
| 8 | public static partial class NetfxSymbolDefinitions |
| 9 | { |
| 10 | public static readonly IntermediateSymbolDefinition NetFxDotNetCompatibilityCheck = new IntermediateSymbolDefinition( |
| 11 | NetfxSymbolDefinitionType.NetFxDotNetCompatibilityCheck.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.RuntimeType), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.Platform), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.Version), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.RollForward), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(NetFxDotNetCompatibilityCheckSymbolFields.Property), IntermediateFieldType.String), |
| 19 | }, |
| 20 | typeof(NetFxDotNetCompatibilityCheckSymbol)); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | namespace WixToolset.Netfx.Symbols |
| 25 | { |
| 26 | using WixToolset.Data; |
| 27 | |
| 28 | public enum NetFxDotNetCompatibilityCheckSymbolFields |
| 29 | { |
| 30 | RuntimeType, |
| 31 | Platform, |
| 32 | Version, |
| 33 | RollForward, |
| 34 | Property, |
| 35 | } |
| 36 | |
| 37 | public class NetFxDotNetCompatibilityCheckSymbol : IntermediateSymbol |
| 38 | { |
| 39 | public NetFxDotNetCompatibilityCheckSymbol() : base(NetfxSymbolDefinitions.NetFxDotNetCompatibilityCheck, null, null) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | public NetFxDotNetCompatibilityCheckSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(NetfxSymbolDefinitions.NetFxDotNetCompatibilityCheck, sourceLineNumber, id) |
| 44 | { |
| 45 | } |
| 46 | |
| 47 | public IntermediateField this[NetFxDotNetCompatibilityCheckSymbolFields index] => this.Fields[(int)index]; |
| 48 | |
| 49 | public string RuntimeType |
| 50 | { |
| 51 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.RuntimeType].AsString(); |
| 52 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.RuntimeType, value); |
| 53 | } |
| 54 | |
| 55 | public string Platform |
| 56 | { |
| 57 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.Platform].AsString(); |
| 58 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.Platform, value); |
| 59 | } |
| 60 | |
| 61 | public string Version |
| 62 | { |
| 63 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.Version].AsString(); |
| 64 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.Version, value); |
| 65 | } |
| 66 | |
| 67 | public string RollForward |
| 68 | { |
| 69 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.RollForward].AsString(); |
| 70 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.RollForward, value); |
| 71 | } |
| 72 | |
| 73 | public string Property |
| 74 | { |
| 75 | get => this.Fields[(int)NetFxDotNetCompatibilityCheckSymbolFields.Property].AsString(); |
| 76 | set => this.Set((int)NetFxDotNetCompatibilityCheckSymbolFields.Property, value); |
| 77 | } |
| 78 | } |
| 79 | } |