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