15 references to canConvert
Microsoft.CSharp (15)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (11)
233(!canConvert(GetPredefindType((PredefinedType)i), GetPredefindType((PredefinedType)j), CONVERTTYPE.NOUDC) || s_simpleTypeBetter[i][j] == left) && 234(!canConvert(GetPredefindType((PredefinedType)j), GetPredefindType((PredefinedType)i), CONVERTTYPE.NOUDC) || s_simpleTypeBetter[j][i] == left)); 342public bool canConvert(CType src, CType dest) => canConvert(src, dest, 0); 764bool fFromImplicit = exprSrc != null ? canConvert(exprSrc, typeFrom, CONVERTTYPE.STANDARDANDNOUDC) : canConvert(typeSrc, typeFrom, CONVERTTYPE.STANDARDANDNOUDC); 766!canConvert(typeFrom, typeSrc, CONVERTTYPE.STANDARDANDNOUDC) && 773bool fToImplicit = canConvert(typeTo, typeDst, CONVERTTYPE.STANDARDANDNOUDC); 775!canConvert(typeDst, typeTo, CONVERTTYPE.STANDARDANDNOUDC) && 1330bool fCon1 = canConvert(type1, type2, CONVERTTYPE.NOUDC); 1331bool fCon2 = canConvert(type2, type1, CONVERTTYPE.NOUDC); 1364bool fCon1 = canConvert(type1, type2, CONVERTTYPE.NOUDC); 1365bool fCon2 = canConvert(type2, type1, CONVERTTYPE.NOUDC);
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
364if (_binder.canConvert(GetPredefindType(PredefinedType.PT_ARRAY), _typeSrc, CONVERTTYPE.NOUDC))
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
655if (!(arg.Type is NullableType) || !canConvert(arg.Type.StripNubs(), typeRaw, CONVERTTYPE.NOUDC))
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (2)
2624if (!canConvert(arg1.Type.StripNubs(), paramsRaw[0], CONVERTTYPE.NOUDC)) 2628if (!canConvert(arg2.Type.StripNubs(), paramsRaw[1], CONVERTTYPE.NOUDC))