diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/WixCustomTableTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/WixCustomTableTuple.cs | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs b/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs index b0d12a63..af731443 100644 --- a/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs +++ b/src/WixToolset.Data/Tuples/WixCustomTableTuple.cs | |||
| @@ -2,53 +2,53 @@ | |||
| 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 WixCustomTable = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition WixCustomTable = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.WixCustomTable, | 10 | SymbolDefinitionType.WixCustomTable, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(WixCustomTableTupleFields.ColumnNames), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(WixCustomTableSymbolFields.ColumnNames), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(WixCustomTableTupleFields.Unreal), IntermediateFieldType.Bool), | 14 | new IntermediateFieldDefinition(nameof(WixCustomTableSymbolFields.Unreal), IntermediateFieldType.Bool), |
| 15 | }, | 15 | }, |
| 16 | typeof(WixCustomTableTuple)); | 16 | typeof(WixCustomTableSymbol)); |
| 17 | } | 17 | } |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | namespace WixToolset.Data.Tuples | 20 | namespace WixToolset.Data.Symbols |
| 21 | { | 21 | { |
| 22 | public enum WixCustomTableTupleFields | 22 | public enum WixCustomTableSymbolFields |
| 23 | { | 23 | { |
| 24 | ColumnNames, | 24 | ColumnNames, |
| 25 | Unreal, | 25 | Unreal, |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | public class WixCustomTableTuple : IntermediateTuple | 28 | public class WixCustomTableSymbol : IntermediateSymbol |
| 29 | { | 29 | { |
| 30 | public const char ColumnNamesSeparator = '\x85'; | 30 | public const char ColumnNamesSeparator = '\x85'; |
| 31 | 31 | ||
| 32 | public WixCustomTableTuple() : base(TupleDefinitions.WixCustomTable, null, null) | 32 | public WixCustomTableSymbol() : base(SymbolDefinitions.WixCustomTable, null, null) |
| 33 | { | 33 | { |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | public WixCustomTableTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.WixCustomTable, sourceLineNumber, id) | 36 | public WixCustomTableSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixCustomTable, sourceLineNumber, id) |
| 37 | { | 37 | { |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | public IntermediateField this[WixCustomTableTupleFields index] => this.Fields[(int)index]; | 40 | public IntermediateField this[WixCustomTableSymbolFields index] => this.Fields[(int)index]; |
| 41 | 41 | ||
| 42 | public string ColumnNames | 42 | public string ColumnNames |
| 43 | { | 43 | { |
| 44 | get => (string)this.Fields[(int)WixCustomTableTupleFields.ColumnNames]; | 44 | get => (string)this.Fields[(int)WixCustomTableSymbolFields.ColumnNames]; |
| 45 | set => this.Set((int)WixCustomTableTupleFields.ColumnNames, value); | 45 | set => this.Set((int)WixCustomTableSymbolFields.ColumnNames, value); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | public bool Unreal | 48 | public bool Unreal |
| 49 | { | 49 | { |
| 50 | get => (bool)this.Fields[(int)WixCustomTableTupleFields.Unreal]; | 50 | get => (bool)this.Fields[(int)WixCustomTableSymbolFields.Unreal]; |
| 51 | set => this.Set((int)WixCustomTableTupleFields.Unreal, value); | 51 | set => this.Set((int)WixCustomTableSymbolFields.Unreal, value); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public string[] ColumnNamesSeparated => this.ColumnNames.Split(ColumnNamesSeparator); | 54 | public string[] ColumnNamesSeparated => this.ColumnNames.Split(ColumnNamesSeparator); |
