29 references to canConvert
Microsoft.CSharp (29)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (4)
604
if (
canConvert
(arg, typeParam))
614
canConvert
(arg, nubParam = TypeManager.GetNullable(typeParam)))
1140
if (!
canConvert
(named.Value, substDestType) &&
1295
if (!
canConvert
(arg, type))
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
940
fresult = _pExprBinder.
canConvert
(pArgument, var);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (24)
228
if (
canConvert
(constant, typeSig1))
241
if (!
canConvert
(constant, typeSig1))
257
if (
canConvert
(info.arg1, typeSig1))
268
if (!
canConvert
(info.arg1, typeSig1))
313
if (
canConvert
(constant, typeSig2))
325
if (!
canConvert
(constant, typeSig2))
342
if (
canConvert
(info.arg2, typeSig2))
353
if (!
canConvert
(info.arg2, typeSig2))
710
bool t1tot2 = info.type2.IsDelegateType &&
canConvert
(info.arg1, info.type2);
711
bool t2tot1 = info.type1.IsDelegateType &&
canConvert
(info.arg2, info.type1);
739
if (
canConvert
(info.arg1, typeDst))
745
if (!
canConvert
(info.arg1, typeDst))
774
if (
canConvert
(info.arg2, typeDst))
780
if (!
canConvert
(info.arg2, typeDst))
939
if (
canConvert
(info.arg1, typeDel) &&
canConvert
(info.arg2, typeDel) && !type1.IsDelegateType && !type2.IsDelegateType)
1429
if (
canConvert
(pArgument, typeSig = GetPredefindType(uos.pt)))
1438
if (!
canConvert
(pArgument, typeSig))
1445
if (
canConvert
(pArgument, typeSig = GetPredefindType(uos.pt)))
1454
if (!
canConvert
(pArgument, typeSig))
2459
if (
canConvert
(arg1, paramsCur[0]) &&
canConvert
(arg2, paramsCur[1]))
2475
if (!
canConvert
(arg1, rgtype[0]) || !
canConvert
(arg2, rgtype[1]))