26 references to ConstCastResult
Microsoft.CSharp (26)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (9)
1115
private
ConstCastResult
bindConstantCast(Expr exprSrc, CType typeDest, bool needExprDest, out Expr pexprDest, bool explicitConversion)
1136
return
ConstCastResult
.CheckFailure;
1138
return
ConstCastResult
.Failure;
1142
return
ConstCastResult
.Success;
1147
return
ConstCastResult
.CheckFailure;
1152
return
ConstCastResult
.Success;
1166
return
ConstCastResult
.Success;
1181
return
ConstCastResult
.Failure;
1300
return
ConstCastResult
.Success;
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (15)
436
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
437
if (result ==
ConstCastResult
.Success)
441
else if (result ==
ConstCastResult
.CheckFailure)
463
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
464
if (result ==
ConstCastResult
.Success)
468
if (result ==
ConstCastResult
.CheckFailure && 0 == (_flags & CONVERTTYPE.CHECKOVERFLOW))
522
ConstCastResult
result = _binder.bindConstantCast(exprCast, _typeDest, _needsExprDest, out _exprDest, true);
523
if (result ==
ConstCastResult
.Success)
527
if (result ==
ConstCastResult
.CheckFailure && 0 == (_flags & CONVERTTYPE.CHECKOVERFLOW))
570
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
571
if (result ==
ConstCastResult
.Success)
575
if (result ==
ConstCastResult
.CheckFailure)
633
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, true);
634
if (result ==
ConstCastResult
.Success)
638
if (result ==
ConstCastResult
.CheckFailure && 0 == (_flags & CONVERTTYPE.CHECKOVERFLOW))
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
721
ConstCastResult
result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, false);
722
if (result ==
ConstCastResult
.Success)