Skip to content

Commit 32ca0bf

Browse files
committed
Rename ConstructorInvokersByTypes -> ConstructorInvokerByTypes
1 parent ef05909 commit 32ca0bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Orm/Xtensive.Orm/Reflection/TypeHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public int GetHashCode((Type, Type[]) obj)
5454
private static readonly string TypeHelperNamespace = typeof(TypeHelper).Namespace;
5555

5656
#if NET8_0_OR_GREATER
57-
private static readonly ConcurrentDictionary<(Type, Type[]), ConstructorInvoker> ConstructorInvokersByTypes =
57+
private static readonly ConcurrentDictionary<(Type, Type[]), ConstructorInvoker> ConstructorInvokerByTypes =
5858
#else
5959
private static readonly ConcurrentDictionary<(Type, Type[]), ConstructorInfo> ConstructorInfoByTypes =
6060
#endif
@@ -661,7 +661,7 @@ public static object Activate(this Type type, Type[] genericArguments, params ob
661661
/// </exception>
662662
#if NET8_0_OR_GREATER
663663
public static ConstructorInvoker GetSingleConstructorInvoker(this Type type, Type[] argumentTypes) =>
664-
ConstructorInvokersByTypes.GetOrAdd((type, argumentTypes),
664+
ConstructorInvokerByTypes.GetOrAdd((type, argumentTypes),
665665
static t => ConstructorExtractor(t) is ConstructorInfo ctor
666666
? ConstructorInvoker.Create(ctor)
667667
: throw new InvalidOperationException(Strings.ExGivenTypeHasNoOrMoreThanOneCtorWithGivenParameters));
@@ -684,7 +684,7 @@ public static ConstructorInfo GetSingleConstructor(this Type type, Type[] argume
684684
[CanBeNull]
685685
#if NET8_0_OR_GREATER
686686
public static ConstructorInvoker GetSingleConstructorInvokerOrDefault(this Type type, Type[] argumentTypes) =>
687-
ConstructorInvokersByTypes.GetOrAdd((type, argumentTypes),
687+
ConstructorInvokerByTypes.GetOrAdd((type, argumentTypes),
688688
static t => ConstructorExtractor(t) is ConstructorInfo ctor ? ConstructorInvoker.Create(ctor) : null);
689689
#else
690690
public static ConstructorInfo GetSingleConstructorOrDefault(this Type type, Type[] argumentTypes) =>

0 commit comments

Comments
 (0)