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