19 references to mustCast
Microsoft.CSharp (19)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
416Expr result = _binder.tryConvert(exprLocal, ctype) ?? _binder.mustCast(exprLocal, ctype); 1264return _binder.mustCast(argument, destinationType);
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
1028Expr nonLiftedArg = mustCast(exprSrc, typeFrom); 1032call.CastOfNonLiftedResultToLiftedType = mustCast(nonLiftedResult, typeDst); 1045pConversionArgument = mustCast(exprSrc, pConversionNubSourceType); 1053pConversionArgument = mustCast(exprSrc, typeFrom);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
682Expr nonLiftedArg = mustCast(arg, typeRaw);
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
375Expr arg1 = _binder.mustCast(_exprSrc, typeSrcBase);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (11)
688pNonLiftedArgument = mustCast(pNonLiftedArgument, pParameterType); 690pNonLiftedArgument = mustCast(pNonLiftedArgument, paramNub.UnderlyingType); 1197return mustCast( 1199op, mustCast(pArgument, TypeManager.GetNullable(GetPredefindType(ptOp)))), nub); 1756exprVal = mustCast(exprVal, type); 1782nonLiftedArg = mustCast(nonLiftedArg, type.UnderlyingType); 1784exprVal = mustCast(exprVal, type); 1786mustCast(mustCast(nonLiftedResult, type), arg.Type); 2697Expr nonLiftedArg1 = mustCast(exprVal1, paramsRaw[0]); 2698Expr nonLiftedArg2 = mustCast(exprVal2, paramsRaw[1]);