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) --- .../Tuples/FeatureComponentsTuple.cs | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs') diff --git a/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs b/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs index 1bda9c4c..af51daed 100644 --- a/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs +++ b/src/WixToolset.Data/Tuples/FeatureComponentsTuple.cs @@ -2,51 +2,51 @@ 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 FeatureComponents = new IntermediateTupleDefinition( - TupleDefinitionType.FeatureComponents, + public static readonly IntermediateSymbolDefinition FeatureComponents = new IntermediateSymbolDefinition( + SymbolDefinitionType.FeatureComponents, new[] { - new IntermediateFieldDefinition(nameof(FeatureComponentsTupleFields.FeatureRef), IntermediateFieldType.String), - new IntermediateFieldDefinition(nameof(FeatureComponentsTupleFields.ComponentRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.FeatureRef), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(FeatureComponentsSymbolFields.ComponentRef), IntermediateFieldType.String), }, - typeof(FeatureComponentsTuple)); + typeof(FeatureComponentsSymbol)); } } -namespace WixToolset.Data.Tuples +namespace WixToolset.Data.Symbols { - public enum FeatureComponentsTupleFields + public enum FeatureComponentsSymbolFields { FeatureRef, ComponentRef, } - public class FeatureComponentsTuple : IntermediateTuple + public class FeatureComponentsSymbol : IntermediateSymbol { - public FeatureComponentsTuple() : base(TupleDefinitions.FeatureComponents, null, null) + public FeatureComponentsSymbol() : base(SymbolDefinitions.FeatureComponents, null, null) { } - public FeatureComponentsTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.FeatureComponents, sourceLineNumber, id) + public FeatureComponentsSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.FeatureComponents, sourceLineNumber, id) { } - public IntermediateField this[FeatureComponentsTupleFields index] => this.Fields[(int)index]; + public IntermediateField this[FeatureComponentsSymbolFields index] => this.Fields[(int)index]; public string FeatureRef { - get => (string)this.Fields[(int)FeatureComponentsTupleFields.FeatureRef]; - set => this.Set((int)FeatureComponentsTupleFields.FeatureRef, value); + get => (string)this.Fields[(int)FeatureComponentsSymbolFields.FeatureRef]; + set => this.Set((int)FeatureComponentsSymbolFields.FeatureRef, value); } public string ComponentRef { - get => (string)this.Fields[(int)FeatureComponentsTupleFields.ComponentRef]; - set => this.Set((int)FeatureComponentsTupleFields.ComponentRef, value); + get => (string)this.Fields[(int)FeatureComponentsSymbolFields.ComponentRef]; + set => this.Set((int)FeatureComponentsSymbolFields.ComponentRef, value); } } } \ No newline at end of file -- cgit v1.2.3-55-g6feb