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