19 references to mustCast
Microsoft.CSharp (19)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
403Expr result = _binder.tryConvert(exprLocal, ctype) ?? _binder.mustCast(exprLocal, ctype); 1236return _binder.mustCast(argument, destinationType);
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
1001Expr nonLiftedArg = mustCast(exprSrc, typeFrom); 1005call.CastOfNonLiftedResultToLiftedType = mustCast(nonLiftedResult, typeDst); 1018pConversionArgument = mustCast(exprSrc, pConversionNubSourceType); 1026pConversionArgument = mustCast(exprSrc, typeFrom);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
669Expr nonLiftedArg = mustCast(arg, typeRaw);
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
373Expr arg1 = _binder.mustCast(_exprSrc, typeSrcBase);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (11)
671pNonLiftedArgument = mustCast(pNonLiftedArgument, pParameterType); 673pNonLiftedArgument = mustCast(pNonLiftedArgument, paramNub.UnderlyingType); 1172return mustCast( 1174op, mustCast(pArgument, TypeManager.GetNullable(GetPredefindType(ptOp)))), nub); 1719exprVal = mustCast(exprVal, type); 1744nonLiftedArg = mustCast(nonLiftedArg, type.UnderlyingType); 1746exprVal = mustCast(exprVal, type); 1748mustCast(mustCast(nonLiftedResult, type), arg.Type); 2632Expr nonLiftedArg1 = mustCast(exprVal1, paramsRaw[0]); 2633Expr nonLiftedArg2 = mustCast(exprVal2, paramsRaw[1]);