diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-03 02:04:35 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-03 02:08:57 -0700 |
| commit | 4a8dc1f4d55278abdff056bb2a332ffec0f60c90 (patch) | |
| tree | a60ee521fcbf9886e820f8330a842355f05f1371 /src/WixToolset.Data/Tuples/WixCustomRowTuple.cs | |
| parent | 29be4a31c4cf1268d847d4c37c70487f29b84701 (diff) | |
| download | wix-4a8dc1f4d55278abdff056bb2a332ffec0f60c90.tar.gz wix-4a8dc1f4d55278abdff056bb2a332ffec0f60c90.tar.bz2 wix-4a8dc1f4d55278abdff056bb2a332ffec0f60c90.zip | |
Redesign CustomTable tuples to enable file resolution in Core
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixCustomRowTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixCustomRowTuple.cs | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/WixToolset.Data/Tuples/WixCustomRowTuple.cs b/src/WixToolset.Data/Tuples/WixCustomRowTuple.cs deleted file mode 100644 index c51089e8..00000000 --- a/src/WixToolset.Data/Tuples/WixCustomRowTuple.cs +++ /dev/null | |||
| @@ -1,56 +0,0 @@ | |||
| 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 WixCustomRow = new IntermediateTupleDefinition( | ||
| 10 | TupleDefinitionType.WixCustomRow, | ||
| 11 | new[] | ||
| 12 | { | ||
| 13 | new IntermediateFieldDefinition(nameof(WixCustomRowTupleFields.Table), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(WixCustomRowTupleFields.FieldData), IntermediateFieldType.String), | ||
| 15 | }, | ||
| 16 | typeof(WixCustomRowTuple)); | ||
| 17 | } | ||
| 18 | } | ||
| 19 | |||
| 20 | namespace WixToolset.Data.Tuples | ||
| 21 | { | ||
| 22 | public enum WixCustomRowTupleFields | ||
| 23 | { | ||
| 24 | Table, | ||
| 25 | FieldData, | ||
| 26 | } | ||
| 27 | |||
| 28 | public class WixCustomRowTuple : IntermediateTuple | ||
| 29 | { | ||
| 30 | public const char FieldSeparator = '\x85'; | ||
| 31 | |||
| 32 | public WixCustomRowTuple() : base(TupleDefinitions.WixCustomRow, null, null) | ||
| 33 | { | ||
| 34 | } | ||
| 35 | |||
| 36 | public WixCustomRowTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixCustomRow, sourceLineNumber, id) | ||
| 37 | { | ||
| 38 | } | ||
| 39 | |||
| 40 | public IntermediateField this[WixCustomRowTupleFields index] => this.Fields[(int)index]; | ||
| 41 | |||
| 42 | public string Table | ||
| 43 | { | ||
| 44 | get => (string)this.Fields[(int)WixCustomRowTupleFields.Table]; | ||
| 45 | set => this.Set((int)WixCustomRowTupleFields.Table, value); | ||
| 46 | } | ||
| 47 | |||
| 48 | public string FieldData | ||
| 49 | { | ||
| 50 | get => (string)this.Fields[(int)WixCustomRowTupleFields.FieldData]; | ||
| 51 | set => this.Set((int)WixCustomRowTupleFields.FieldData, value); | ||
| 52 | } | ||
| 53 | |||
| 54 | public string[] FieldDataSeparated => this.FieldData.Split(FieldSeparator); | ||
| 55 | } | ||
| 56 | } | ||
