mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	Fix typo in PairDeconstructor class name
PairDeconstuctor → PairDeconstructor (was missing an 'r') Keeping `PairDeconstuctor` and marking it as obsolete since it's a public type.
This commit is contained in:
		 Cédric Luthi
					Cédric Luthi
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							48df9cf68b
						
					
				
				
					commit
					19eb273813
				
			| @@ -28,7 +28,7 @@ namespace Spectre.Console.Cli | ||||
|             Type parameterType, ParameterKind parameterKind, PropertyInfo property, | ||||
|             string? description, TypeConverterAttribute? converter, | ||||
|             DefaultValueAttribute? defaultValue, | ||||
|             PairDeconstructorAttribute? deconstuctor, | ||||
|             PairDeconstructorAttribute? deconstructor, | ||||
|             ParameterValueProviderAttribute? valueProvider, | ||||
|             IEnumerable<ParameterValidationAttribute> validators, bool required) | ||||
|         { | ||||
| @@ -39,7 +39,7 @@ namespace Spectre.Console.Cli | ||||
|             Description = description; | ||||
|             Converter = converter; | ||||
|             DefaultValue = defaultValue; | ||||
|             PairDeconstructor = deconstuctor; | ||||
|             PairDeconstructor = deconstructor; | ||||
|             ValueProvider = valueProvider; | ||||
|             Validators = new List<ParameterValidationAttribute>(validators ?? Array.Empty<ParameterValidationAttribute>()); | ||||
|             Required = required; | ||||
|   | ||||
| @@ -7,7 +7,7 @@ namespace Spectre.Console.Cli | ||||
|     /// </summary> | ||||
|     /// <typeparam name="TKey">The key type.</typeparam> | ||||
|     /// <typeparam name="TValue">The value type.</typeparam> | ||||
|     public abstract class PairDeconstuctor<TKey, TValue> : IPairDeconstructor | ||||
|     public abstract class PairDeconstructor<TKey, TValue> : IPairDeconstructor | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// Deconstructs the provided <see cref="string"/> into a pair. | ||||
| @@ -27,4 +27,15 @@ namespace Spectre.Console.Cli | ||||
|             return Deconstruct(value); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /// <summary> | ||||
|     /// Base class for a pair deconstructor. | ||||
|     /// </summary> | ||||
|     /// <typeparam name="TKey">The key type.</typeparam> | ||||
|     /// <typeparam name="TValue">The value type.</typeparam> | ||||
|     /// <remarks>This class is misspelled, use <see cref="PairDeconstructor{TKey,TValue}"/> instead.</remarks> | ||||
|     [Obsolete("Use PairDeconstructor instead")] | ||||
|     public abstract class PairDeconstuctor<TKey, TValue> : PairDeconstructor<TKey, TValue> | ||||
|     { | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user