15 references to CastResult
System.Private.CoreLib (15)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\TypeCast.cs (11)
73
CastResult
result = s_castCache.TryGet((nuint)mt + (int)AssignmentVariation.BoxedSource, (nuint)pTargetType);
74
if (result ==
CastResult
.CanCast)
78
else if (result ==
CastResult
.CannotCast)
280
CastResult
result;
288
if (result !=
CastResult
.CanCast)
301
Debug.Assert(result !=
CastResult
.CannotCast);
826
CastResult
result = s_castCache.TryGet((nuint)obj.GetMethodTable() + (int)AssignmentVariation.BoxedSource, (nuint)elementType);
827
if (result ==
CastResult
.CanCast)
1019
CastResult
result = s_castCache.TryGet(sourceAndVariation, (nuint)(pTargetType));
1020
if (result !=
CastResult
.MaybeCast)
1022
return result ==
CastResult
.CanCast;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\CastCache.cs (4)
140
internal
CastResult
TryGet(nuint source, nuint target)
147
internal static
CastResult
TryGet(int[] table, nuint source, nuint target)
191
return (
CastResult
)entryTargetAndResult;
205
return
CastResult
.MaybeCast;