diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs b/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs index 56ca144f..b1aa9c77 100644 --- a/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs +++ b/src/WixToolset.Data/Tuples/WixBundlePatchTargetCodeTuple.cs | |||
| @@ -2,27 +2,27 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition WixBundlePatchTargetCode = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition WixBundlePatchTargetCode = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.WixBundlePatchTargetCode, | 10 | SymbolDefinitionType.WixBundlePatchTargetCode, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeTupleFields.PackageRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.PackageRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeTupleFields.TargetCode), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.TargetCode), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeTupleFields.Attributes), IntermediateFieldType.Number), | 15 | new IntermediateFieldDefinition(nameof(WixBundlePatchTargetCodeSymbolFields.Attributes), IntermediateFieldType.Number), |
| 16 | }, | 16 | }, |
| 17 | typeof(WixBundlePatchTargetCodeTuple)); | 17 | typeof(WixBundlePatchTargetCodeSymbol)); |
| 18 | } | 18 | } |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | namespace WixToolset.Data.Tuples | 21 | namespace WixToolset.Data.Symbols |
| 22 | { | 22 | { |
| 23 | using System; | 23 | using System; |
| 24 | 24 | ||
| 25 | public enum WixBundlePatchTargetCodeTupleFields | 25 | public enum WixBundlePatchTargetCodeSymbolFields |
| 26 | { | 26 | { |
| 27 | PackageRef, | 27 | PackageRef, |
| 28 | TargetCode, | 28 | TargetCode, |
| @@ -45,34 +45,34 @@ namespace WixToolset.Data.Tuples | |||
| 45 | TargetsUpgradeCode = 2, | 45 | TargetsUpgradeCode = 2, |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | public class WixBundlePatchTargetCodeTuple : IntermediateTuple | 48 | public class WixBundlePatchTargetCodeSymbol : IntermediateSymbol |
| 49 | { | 49 | { |
| 50 | public WixBundlePatchTargetCodeTuple() : base(TupleDefinitions.WixBundlePatchTargetCode, null, null) | 50 | public WixBundlePatchTargetCodeSymbol() : base(SymbolDefinitions.WixBundlePatchTargetCode, null, null) |
| 51 | { | 51 | { |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public WixBundlePatchTargetCodeTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundlePatchTargetCode, sourceLineNumber, id) | 54 | public WixBundlePatchTargetCodeSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixBundlePatchTargetCode, sourceLineNumber, id) |
| 55 | { | 55 | { |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | public IntermediateField this[WixBundlePatchTargetCodeTupleFields index] => this.Fields[(int)index]; | 58 | public IntermediateField this[WixBundlePatchTargetCodeSymbolFields index] => this.Fields[(int)index]; |
| 59 | 59 | ||
| 60 | public string PackageRef | 60 | public string PackageRef |
| 61 | { | 61 | { |
| 62 | get => (string)this.Fields[(int)WixBundlePatchTargetCodeTupleFields.PackageRef]; | 62 | get => (string)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.PackageRef]; |
| 63 | set => this.Set((int)WixBundlePatchTargetCodeTupleFields.PackageRef, value); | 63 | set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.PackageRef, value); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | public string TargetCode | 66 | public string TargetCode |
| 67 | { | 67 | { |
| 68 | get => (string)this.Fields[(int)WixBundlePatchTargetCodeTupleFields.TargetCode]; | 68 | get => (string)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.TargetCode]; |
| 69 | set => this.Set((int)WixBundlePatchTargetCodeTupleFields.TargetCode, value); | 69 | set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.TargetCode, value); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | public WixBundlePatchTargetCodeAttributes Attributes | 72 | public WixBundlePatchTargetCodeAttributes Attributes |
| 73 | { | 73 | { |
| 74 | get => (WixBundlePatchTargetCodeAttributes)this.Fields[(int)WixBundlePatchTargetCodeTupleFields.Attributes].AsNumber(); | 74 | get => (WixBundlePatchTargetCodeAttributes)this.Fields[(int)WixBundlePatchTargetCodeSymbolFields.Attributes].AsNumber(); |
| 75 | set => this.Set((int)WixBundlePatchTargetCodeTupleFields.Attributes, (int)value); | 75 | set => this.Set((int)WixBundlePatchTargetCodeSymbolFields.Attributes, (int)value); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | public bool TargetsProductCode => (this.Attributes & WixBundlePatchTargetCodeAttributes.TargetsProductCode) == WixBundlePatchTargetCodeAttributes.TargetsProductCode; | 78 | public bool TargetsProductCode => (this.Attributes & WixBundlePatchTargetCodeAttributes.TargetsProductCode) == WixBundlePatchTargetCodeAttributes.TargetsProductCode; |
