From 38afa9e7bc7eacc021f8805f607368a05751e3c3 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 25 Jun 2020 14:43:50 -0700 Subject: The Great Tuple to Symbol Rename (tm) --- .../Example.Extension/ExampleTupleDefinitions.cs | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/test/Example.Extension/ExampleTupleDefinitions.cs') diff --git a/src/test/Example.Extension/ExampleTupleDefinitions.cs b/src/test/Example.Extension/ExampleTupleDefinitions.cs index 446c2c45..f13d716d 100644 --- a/src/test/Example.Extension/ExampleTupleDefinitions.cs +++ b/src/test/Example.Extension/ExampleTupleDefinitions.cs @@ -6,58 +6,58 @@ namespace Example.Extension using WixToolset.Data; using WixToolset.Data.Burn; - public enum ExampleTupleDefinitionType + public enum ExampleSymbolDefinitionType { Example, ExampleSearch, } - public static class ExampleTupleDefinitions + public static class ExampleSymbolDefinitions { - public static readonly IntermediateTupleDefinition Example = new IntermediateTupleDefinition( - ExampleTupleDefinitionType.Example.ToString(), + public static readonly IntermediateSymbolDefinition Example = new IntermediateSymbolDefinition( + ExampleSymbolDefinitionType.Example.ToString(), new[] { - new IntermediateFieldDefinition(nameof(ExampleTupleFields.Value), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExampleSymbolFields.Value), IntermediateFieldType.String), }, - typeof(ExampleTuple)); + typeof(ExampleSymbol)); - public static readonly IntermediateTupleDefinition ExampleSearch = new IntermediateTupleDefinition( - ExampleTupleDefinitionType.ExampleSearch.ToString(), + public static readonly IntermediateSymbolDefinition ExampleSearch = new IntermediateSymbolDefinition( + ExampleSymbolDefinitionType.ExampleSearch.ToString(), new[] { - new IntermediateFieldDefinition(nameof(ExampleSearchTupleFields.SearchFor), IntermediateFieldType.String), + new IntermediateFieldDefinition(nameof(ExampleSearchSymbolFields.SearchFor), IntermediateFieldType.String), }, - typeof(ExampleSearchTuple)); + typeof(ExampleSearchSymbol)); - static ExampleTupleDefinitions() + static ExampleSymbolDefinitions() { - ExampleSearch.AddTag(BurnConstants.BundleExtensionSearchTupleDefinitionTag); + ExampleSearch.AddTag(BurnConstants.BundleExtensionSearchSymbolDefinitionTag); } - public static bool TryGetTupleType(string name, out ExampleTupleDefinitionType type) + public static bool TryGetSymbolType(string name, out ExampleSymbolDefinitionType type) { return Enum.TryParse(name, out type); } - public static IntermediateTupleDefinition ByName(string name) + public static IntermediateSymbolDefinition ByName(string name) { - if (!TryGetTupleType(name, out var type)) + if (!TryGetSymbolType(name, out var type)) { return null; } return ByType(type); } - public static IntermediateTupleDefinition ByType(ExampleTupleDefinitionType type) + public static IntermediateSymbolDefinition ByType(ExampleSymbolDefinitionType type) { switch (type) { - case ExampleTupleDefinitionType.Example: - return ExampleTupleDefinitions.Example; + case ExampleSymbolDefinitionType.Example: + return ExampleSymbolDefinitions.Example; - case ExampleTupleDefinitionType.ExampleSearch: - return ExampleTupleDefinitions.ExampleSearch; + case ExampleSymbolDefinitionType.ExampleSearch: + return ExampleSymbolDefinitions.ExampleSearch; default: throw new ArgumentOutOfRangeException(nameof(type)); -- cgit v1.2.3-55-g6feb