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