5 references to CastHelpers
System.Private.CoreLib (5)
src\System\Array.CoreCLR.cs (3)
310
Unsafe.Add(ref destData, i) =
CastHelpers
.ChkCastAny(destTH, obj);
535
&&
CastHelpers
.IsInstanceOfAny(pElementMethodTable, value) == null)
545
if (
CastHelpers
.IsInstanceOfAny(pElementMethodTable, value) != null)
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (1)
1057
CastResult result = CastCache.TryGet(
CastHelpers
.s_table!, (nuint)m_asTAddr, (nuint)destTH.m_asTAddr);
src\System\RuntimeType.CoreCLR.cs (1)
3311
bool ret =
CastHelpers
.IsInstanceOfAny(GetUnderlyingNativeHandle().ToPointer(), o) is not null;