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