From 9787570331b511bab73ac8f4f38a3b8cfa053ca5 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Wed, 24 Jun 2020 14:05:08 -0700 Subject: The Great Tuple to Symbol Rename (tm) --- src/WixToolset.Data/Tuples/PropertyTuple.cs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/WixToolset.Data/Tuples/PropertyTuple.cs') diff --git a/src/WixToolset.Data/Tuples/PropertyTuple.cs b/src/WixToolset.Data/Tuples/PropertyTuple.cs index e6a5ceae..b93d962a 100644 --- a/src/WixToolset.Data/Tuples/PropertyTuple.cs +++ b/src/WixToolset.Data/Tuples/PropertyTuple.cs @@ -2,43 +2,43 @@ namespace WixToolset.Data { - using WixToolset.Data.Tuples; + using WixToolset.Data.Symbols; - public static partial class TupleDefinitions + public static partial class SymbolDefinitions { - public static readonly IntermediateTupleDefinition Property = new IntermediateTupleDefinition( - TupleDefinitionType.Property, + public static readonly IntermediateSymbolDefinition Property = new IntermediateSymbolDefinition( + SymbolDefinitionType.Property, new[] { - new IntermediateFieldDefinition(nameof(PropertyTupleFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(PropertySymbolFields.Value), IntermediateFieldType.String), }, - typeof(PropertyTuple)); + typeof(PropertySymbol)); } } -namespace WixToolset.Data.Tuples +namespace WixToolset.Data.Symbols { - public enum PropertyTupleFields + public enum PropertySymbolFields { Value, } - public class PropertyTuple : IntermediateTuple + public class PropertySymbol : IntermediateSymbol { - public PropertyTuple() : base(TupleDefinitions.Property, null, null) + public PropertySymbol() : base(SymbolDefinitions.Property, null, null) { } - public PropertyTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.Property, sourceLineNumber, id) + public PropertySymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.Property, sourceLineNumber, id) { } - public IntermediateField this[PropertyTupleFields index] => this.Fields[(int)index]; + public IntermediateField this[PropertySymbolFields index] => this.Fields[(int)index]; public string Value { - get => (string)this.Fields[(int)PropertyTupleFields.Value]; - set => this.Set((int)PropertyTupleFields.Value, value); + get => (string)this.Fields[(int)PropertySymbolFields.Value]; + set => this.Set((int)PropertySymbolFields.Value, value); } } } \ No newline at end of file -- cgit v1.2.3-55-g6feb