diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-06-19 13:45:04 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-06-19 14:02:13 +1000 |
| commit | 4b3a3e60eb5f621723be7b894a7a71ae331dcf46 (patch) | |
| tree | 4df7e0364a96661a743683da220d5c2d0a79af48 /src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs | |
| parent | 19be63b9a7c50e17386cd476c1ffd7c40ba9eaf5 (diff) | |
| download | wix-4b3a3e60eb5f621723be7b894a7a71ae331dcf46.tar.gz wix-4b3a3e60eb5f621723be7b894a7a71ae331dcf46.tar.bz2 wix-4b3a3e60eb5f621723be7b894a7a71ae331dcf46.zip | |
Add BundleCustomData tuples. Remove Unreal from CustomTable.
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs b/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs new file mode 100644 index 00000000..9c27c9f4 --- /dev/null +++ b/src/WixToolset.Data/Tuples/WixBundleCustomDataAttributeTuple.cs | |||
| @@ -0,0 +1,52 @@ | |||
| 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.Tuples; | ||
| 6 | |||
| 7 | public static partial class TupleDefinitions | ||
| 8 | { | ||
| 9 | public static readonly IntermediateTupleDefinition WixBundleCustomDataAttribute = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.WixBundleCustomDataAttribute, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeTupleFields.CustomDataRef), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(WixBundleCustomDataAttributeTupleFields.Name), IntermediateFieldType.String), | ||
| 15 | }, | ||
| 16 | typeof(WixBundleCustomDataAttributeTuple)); | ||
| 17 | } | ||
| 18 | } | ||
| 19 | |||
| 20 | namespace WixToolset.Data.Tuples | ||
| 21 | { | ||
| 22 | public enum WixBundleCustomDataAttributeTupleFields | ||
| 23 | { | ||
| 24 | CustomDataRef, | ||
| 25 | Name, | ||
| 26 | } | ||
| 27 | |||
| 28 | public class WixBundleCustomDataAttributeTuple : IntermediateTuple | ||
| 29 | { | ||
| 30 | public WixBundleCustomDataAttributeTuple() : base(TupleDefinitions.WixBundleCustomDataAttribute, null, null) | ||
| 31 | { | ||
| 32 | } | ||
| 33 | |||
| 34 | public WixBundleCustomDataAttributeTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixBundleCustomDataAttribute, sourceLineNumber, id) | ||
| 35 | { | ||
| 36 | } | ||
| 37 | |||
| 38 | public IntermediateField this[WixBundleCustomDataAttributeTupleFields index] => this.Fields[(int)index]; | ||
| 39 | |||
| 40 | public string CustomDataRef | ||
| 41 | { | ||
| 42 | get => (string)this.Fields[(int)WixBundleCustomDataAttributeTupleFields.CustomDataRef]; | ||
| 43 | set => this.Set((int)WixBundleCustomDataAttributeTupleFields.CustomDataRef, value); | ||
| 44 | } | ||
| 45 | |||
| 46 | public string Name | ||
| 47 | { | ||
| 48 | get => (string)this.Fields[(int)WixBundleCustomDataAttributeTupleFields.Name]; | ||
| 49 | set => this.Set((int)WixBundleCustomDataAttributeTupleFields.Name, value); | ||
| 50 | } | ||
| 51 | } | ||
| 52 | } | ||
