19 references to mustCast
Microsoft.CSharp (19)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
1241
return _binder.
mustCast
(
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (2)
539
public Expr mustCast(Expr expr, CType dest) =>
mustCast
(expr, dest, 0);
548
new ExpressionBinder(new BindingContext(Context)).
mustCast
(expr, dest, flags);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
688
call.CastOfNonLiftedResultToLiftedType =
mustCast
(nonLiftedResult, typeRet, 0);
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
388
exprDst.CastOfNonLiftedResultToLiftedType = _binder.
mustCast
(arg1, nubDst, 0);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (14)
662
mustCast
(nonLiftedResult, resultType, 0);
1313
mustCast
(pArgument, uofs.GetType(), CONVERTTYPE.NOUDC);
1555
mustCast
(nonLiftedResult, type, 0);
1734
return typeTmp != type ?
mustCast
(pExprResult, type, CONVERTTYPE.NOUDC) : pExprResult;
1758
Expr op =
mustCast
(exprVal, arg.Type, CONVERTTYPE.NOUDC);
1936
mustCast
(nonLiftedResult, typeRes, 0);
2073
arg1 = binder.
mustCast
(arg1, typeOp, CONVERTTYPE.NOUDC);
2074
arg2 = binder.
mustCast
(arg2, typeOp, CONVERTTYPE.NOUDC);
2081
exprRes = binder.
mustCast
(exprRes, typeDst, CONVERTTYPE.NOUDC);
2115
arg1 =
mustCast
(arg1, typeOp, CONVERTTYPE.NOUDC);
2116
arg2 =
mustCast
(arg2, typeOp, CONVERTTYPE.NOUDC);
2125
return
mustCast
(exprRes, typeDst, CONVERTTYPE.NOUDC);
2152
arg = binder.
mustCast
(arg, typeOp, CONVERTTYPE.NOUDC);
2740
call.CastOfNonLiftedResultToLiftedType =
mustCast
(nonLiftedResult, typeRet, 0);