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