@@ -54,7 +54,7 @@ public int GetHashCode((Type, Type[]) obj)
54
54
private static readonly string TypeHelperNamespace = typeof ( TypeHelper ) . Namespace ;
55
55
56
56
#if NET8_0_OR_GREATER
57
- private static readonly ConcurrentDictionary < ( Type , Type [ ] ) , ConstructorInvoker > ConstructorInfoByTypes =
57
+ private static readonly ConcurrentDictionary < ( Type , Type [ ] ) , ConstructorInvoker > ConstructorInvokerByTypes =
58
58
#else
59
59
private static readonly ConcurrentDictionary < ( Type , Type [ ] ) , ConstructorInfo > ConstructorInfoByTypes =
60
60
#endif
@@ -666,7 +666,7 @@ public static object Activate(this Type type, Type[] genericArguments, params ob
666
666
/// </exception>
667
667
#if NET8_0_OR_GREATER
668
668
public static ConstructorInvoker GetSingleConstructorInvoker ( this Type type , Type [ ] argumentTypes ) =>
669
- ConstructorInfoByTypes . GetOrAdd ( ( type , argumentTypes ) ,
669
+ ConstructorInvokerByTypes . GetOrAdd ( ( type , argumentTypes ) ,
670
670
static t => ConstructorExtractor ( t ) is ConstructorInfo ctor
671
671
? ConstructorInvoker . Create ( ctor )
672
672
: throw new InvalidOperationException ( Strings . ExGivenTypeHasNoOrMoreThanOneCtorWithGivenParameters ) ) ;
@@ -689,7 +689,7 @@ public static ConstructorInfo GetSingleConstructor(this Type type, Type[] argume
689
689
[ CanBeNull ]
690
690
#if NET8_0_OR_GREATER
691
691
public static ConstructorInvoker GetSingleConstructorInvokerOrDefault ( this Type type , Type [ ] argumentTypes ) =>
692
- ConstructorInfoByTypes . GetOrAdd ( ( type , argumentTypes ) ,
692
+ ConstructorInvokerByTypes . GetOrAdd ( ( type , argumentTypes ) ,
693
693
static t => ConstructorExtractor ( t ) is ConstructorInfo ctor ? ConstructorInvoker . Create ( ctor ) : null ) ;
694
694
#else
695
695
public static ConstructorInfo GetSingleConstructorOrDefault ( this Type type , Type [ ] argumentTypes ) =>
@@ -970,12 +970,6 @@ public static MethodInvoker CachedMakeGenericMethodInvoker(this MethodInfo gener
970
970
971
971
public static MethodInvoker CachedMakeGenericMethodInvoker ( this MethodInfo genericDefinition , Type typeArgument1 , Type typeArgument2 ) =>
972
972
GenericMethodInvokers2 . GetOrAdd ( ( genericDefinition , typeArgument1 , typeArgument2 ) , GenericMethodInvokerFactory2 ) ;
973
- #else
974
- public static MethodInfo CachedMakeGenericMethodInvoker ( this MethodInfo genericDefinition , Type typeArgument ) =>
975
- CachedMakeGenericMethod ( genericDefinition , typeArgument ) ;
976
-
977
- public static MethodInfo CachedMakeGenericMethodInvoker ( this MethodInfo genericDefinition , Type typeArgument1 , Type typeArgument2 ) =>
978
- CachedMakeGenericMethod ( genericDefinition , typeArgument1 , typeArgument2 ) ;
979
973
#endif
980
974
981
975
public static Type CachedMakeGenericType ( this Type genericDefinition , Type typeArgument ) =>
0 commit comments