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