19 references to mustCast
Microsoft.CSharp (19)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
1214
return _binder.
mustCast
(
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (2)
522
public Expr mustCast(Expr expr, CType dest) =>
mustCast
(expr, dest, 0);
529
new ExpressionBinder(new BindingContext(Context)).
mustCast
(expr, dest, flags);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
675
call.CastOfNonLiftedResultToLiftedType =
mustCast
(nonLiftedResult, typeRet, 0);
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
386
exprDst.CastOfNonLiftedResultToLiftedType = _binder.
mustCast
(arg1, nubDst, 0);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (14)
646
mustCast
(nonLiftedResult, resultType, 0);
1288
mustCast
(pArgument, uofs.GetType(), CONVERTTYPE.NOUDC);
1527
mustCast
(nonLiftedResult, type, 0);
1698
return typeTmp != type ?
mustCast
(pExprResult, type, CONVERTTYPE.NOUDC) : pExprResult;
1721
Expr op =
mustCast
(exprVal, arg.Type, CONVERTTYPE.NOUDC);
1892
mustCast
(nonLiftedResult, typeRes, 0);
2024
arg1 = binder.
mustCast
(arg1, typeOp, CONVERTTYPE.NOUDC);
2025
arg2 = binder.
mustCast
(arg2, typeOp, CONVERTTYPE.NOUDC);
2032
exprRes = binder.
mustCast
(exprRes, typeDst, CONVERTTYPE.NOUDC);
2065
arg1 =
mustCast
(arg1, typeOp, CONVERTTYPE.NOUDC);
2066
arg2 =
mustCast
(arg2, typeOp, CONVERTTYPE.NOUDC);
2075
return
mustCast
(exprRes, typeDst, CONVERTTYPE.NOUDC);
2101
arg = binder.
mustCast
(arg, typeOp, CONVERTTYPE.NOUDC);
2675
call.CastOfNonLiftedResultToLiftedType =
mustCast
(nonLiftedResult, typeRet, 0);