9 references to CreateInstanceForAnotherGenericParameter
System.Private.CoreLib (9)
src\System\Collections\Generic\ArraySortHelper.CoreCLR.cs (1)
28
defaultArraySortHelper = (IArraySortHelper<T>)RuntimeTypeHandle.
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(GenericArraySortHelper<string>), (RuntimeType)typeof(T));
src\System\Collections\Generic\ComparerHelpers.cs (8)
38
result =
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(GenericComparer<int>), runtimeType);
44
result =
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(NullableComparer<int>), embeddedType);
49
result =
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(EnumComparer<>), runtimeType);
52
return result ??
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(ObjectComparer<object>), runtimeType);
76
result =
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(GenericEqualityComparer<string>), runtimeType);
82
result =
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(NullableEqualityComparer<int>), embeddedType);
87
result =
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(EnumEqualityComparer<>), runtimeType);
90
return result ??
CreateInstanceForAnotherGenericParameter
((RuntimeType)typeof(ObjectEqualityComparer<object>), runtimeType);