26 references to ConstCastResult
Microsoft.CSharp (26)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (9)
1146
private
ConstCastResult
bindConstantCast(Expr exprSrc, CType typeDest, bool needExprDest, out Expr pexprDest, bool explicitConversion)
1167
return
ConstCastResult
.CheckFailure;
1169
return
ConstCastResult
.Failure;
1173
return
ConstCastResult
.Success;
1178
return
ConstCastResult
.CheckFailure;
1183
return
ConstCastResult
.Success;
1197
return
ConstCastResult
.Success;
1212
return
ConstCastResult
.Failure;
1331
return
ConstCastResult
.Success;
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (15)
437
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
438
if (result ==
ConstCastResult
.Success)
442
else if (result ==
ConstCastResult
.CheckFailure)
464
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
465
if (result ==
ConstCastResult
.Success)
469
if (result ==
ConstCastResult
.CheckFailure && 0 == (_flags & CONVERTTYPE.CHECKOVERFLOW))
523
ConstCastResult
result = _binder.bindConstantCast(exprCast, _typeDest, _needsExprDest, out _exprDest, true);
524
if (result ==
ConstCastResult
.Success)
528
if (result ==
ConstCastResult
.CheckFailure && 0 == (_flags & CONVERTTYPE.CHECKOVERFLOW))
571
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
572
if (result ==
ConstCastResult
.Success)
576
if (result ==
ConstCastResult
.CheckFailure)
635
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
636
if (result ==
ConstCastResult
.Success)
640
if (result ==
ConstCastResult
.CheckFailure && 0 == (_flags & CONVERTTYPE.CHECKOVERFLOW))
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
724
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, false);
725
if (result ==
ConstCastResult
.Success)