19 references to AreTypesAssignable
System.Private.CoreLib (19)
Internal\IntrinsicSupport\ComparerHelpers.cs (1)
43
else if (RuntimeImports.
AreTypesAssignable
(objectType, interfaceType->GenericArguments[0]))
Internal\Runtime\Augments\RuntimeAugments.cs (2)
441
return RuntimeImports.
AreTypesAssignable
(srcEEType, dstEEType);
627
return RuntimeImports.
AreTypesAssignable
(srcEEType, dstType.ToMethodTable());
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (2)
614
if (!RuntimeImports.
AreTypesAssignable
(pMarshallerType.ToMethodTable(), MethodTable.Of<ICustomMarshaler>()))
625
if (!RuntimeImports.
AreTypesAssignable
(marshaller.GetMethodTable(), MethodTable.Of<ICustomMarshaler>()))
System\Array.NativeAot.cs (7)
304
if (RuntimeImports.
AreTypesAssignable
(sourceElementEEType, destinationElementEEType))
313
if (RuntimeImports.
AreTypesAssignable
(sourceElementEEType, destinationElementEEType))
322
if (RuntimeImports.
AreTypesAssignable
(sourceElementEEType, destinationElementEEType))
324
else if (RuntimeImports.
AreTypesAssignable
(destinationElementEEType, sourceElementEEType)) // V extends IV. Copying from IV to V, or Object to V.
353
if (RuntimeImports.
AreTypesAssignable
(sourceElementEEType, destinationElementEEType))
357
if (RuntimeImports.
AreTypesAssignable
(destinationElementEEType, sourceElementEEType))
414
Debug.Assert(value == null || RuntimeImports.
AreTypesAssignable
(value.GetMethodTable(), pElementEEType));
System\InvokeUtils.cs (2)
71
RuntimeImports.
AreTypesAssignable
(srcEEType, dstEEType) ||
385
if (dstEEType == typeof(void*).TypeHandle.ToMethodTable() || RuntimeImports.
AreTypesAssignable
(pSourceType: srcPointer.GetPointerType().TypeHandle.ToMethodTable(), pTargetType: dstEEType))
System\Reflection\DynamicInvokeInfo.cs (2)
628
RuntimeImports.
AreTypesAssignable
(srcEEType, dstEEType) ||
696
RuntimeImports.
AreTypesAssignable
(srcEEType, dstEEType) ||
System\Runtime\CompilerServices\RuntimeHelpers.NativeAot.cs (1)
334
if (RuntimeImports.
AreTypesAssignable
(mt, MethodTable.Of<Delegate>()))
System\Runtime\InteropServices\Marshal.NativeAot.cs (1)
102
RuntimeImports.
AreTypesAssignable
(MethodTable.Of<Delegate>(), structureTypeHandle.ToMethodTable()))
System\RuntimeType.NativeAot.cs (1)
624
if (RuntimeImports.
AreTypesAssignable
(fromRuntimeType._pUnderlyingEEType, _pUnderlyingEEType))