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