5 references to canCast
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (3)
396
throw ErrorHandling.Error(
canCast
(expr.Type, dest, flags) ? ErrorCode.ERR_NoImplicitConvCast : ErrorCode.ERR_NoImplicitConv, new ErrArg(expr.Type, ErrArgFlags.Unique), new ErrArg(dest, ErrArgFlags.Unique));
769
(!fIntPtrStandard || typeSrc is PointerType || typeFrom is PointerType || !
canCast
(typeSrc, typeFrom, CONVERTTYPE.NOUDC))))
778
(!fIntPtrStandard || typeDst is PointerType || typeTo is PointerType || !
canCast
(typeTo, typeDst, CONVERTTYPE.NOUDC))))
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (2)
980
if (!
canCast
(type1, type2, CONVERTTYPE.NOUDC) && !
canCast
(type2, type1, CONVERTTYPE.NOUDC))