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