46 references to NOUDC
Microsoft.CSharp (46)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
1217
CONVERTTYPE.CHECKOVERFLOW | CONVERTTYPE.
NOUDC
);
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (11)
233
(!canConvert(GetPredefindType((PredefinedType)i), GetPredefindType((PredefinedType)j), CONVERTTYPE.
NOUDC
) || s_simpleTypeBetter[i][j] == left) &&
234
(!canConvert(GetPredefindType((PredefinedType)j), GetPredefindType((PredefinedType)i), CONVERTTYPE.
NOUDC
) || s_simpleTypeBetter[j][i] == left));
473
if (!CanExplicitConversionBeBoundInUncheckedContext(expr, expr.Type, dest, flags | CONVERTTYPE.
NOUDC
))
769
(!fIntPtrStandard || typeSrc is PointerType || typeFrom is PointerType || !canCast(typeSrc, typeFrom, CONVERTTYPE.
NOUDC
))))
778
(!fIntPtrStandard || typeDst is PointerType || typeTo is PointerType || !canCast(typeTo, typeDst, CONVERTTYPE.
NOUDC
))))
1101
Expr pTransformedArgument = mustCastCore(pFrom, pTypeFrom, CONVERTTYPE.
NOUDC
);
1105
Expr pCast = mustCastCore(pCall, pTypeDestination, CONVERTTYPE.
NOUDC
);
1330
bool fCon1 = canConvert(type1, type2, CONVERTTYPE.
NOUDC
);
1331
bool fCon2 = canConvert(type2, type1, CONVERTTYPE.
NOUDC
);
1364
bool fCon1 = canConvert(type1, type2, CONVERTTYPE.
NOUDC
);
1365
bool fCon2 = canConvert(type2, type1, CONVERTTYPE.
NOUDC
);
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (5)
178
if (0 == (_flags & CONVERTTYPE.
NOUDC
))
194
if (_typeDest.IsValueType && _binder.BindExplicitConversion(null, _typeSrc.StripNubs(), _typeDest, _flags | CONVERTTYPE.
NOUDC
))
205
if (!_binder.BindExplicitConversion(valueSrc, valueSrc.Type, _typeDest, _needsExprDest, out _exprDest, _flags | CONVERTTYPE.
NOUDC
))
218
if ((_flags & CONVERTTYPE.
NOUDC
) == 0)
364
if (_binder.canConvert(GetPredefindType(PredefinedType.PT_ARRAY), _typeSrc, CONVERTTYPE.
NOUDC
))
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (2)
655
if (!(arg.Type is NullableType) || !canConvert(arg.Type.StripNubs(), typeRaw, CONVERTTYPE.
NOUDC
))
1002
pObject = tryConvert(pObject, swt.GetType(), CONVERTTYPE.
NOUDC
);
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (9)
139
_flags |= CONVERTTYPE.
NOUDC
;
215
if (0 == (_flags & CONVERTTYPE.
NOUDC
))
324
if (_typeSrc == typeDstBase || pfn(_exprSrc, _typeSrc, typeDstBase, _needsExprDest, out exprTmp, _flags | CONVERTTYPE.
NOUDC
))
354
return 0 == (_flags & CONVERTTYPE.
NOUDC
) && _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT));
359
if (typeSrcBase != typeDstBase && !pfn(null, typeSrcBase, typeDstBase, false, out _exprDest, _flags | CONVERTTYPE.
NOUDC
))
362
return 0 == (_flags & CONVERTTYPE.
NOUDC
) && _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT));
376
arg1, arg1.Type, typeDstBase, out arg1, _flags | CONVERTTYPE.
NOUDC
)
378
arg1, arg1.Type, typeDstBase, out arg1, _flags | CONVERTTYPE.
NOUDC
);
462
return 0 == (_flags & CONVERTTYPE.
NOUDC
) && _binder.bindUserDefinedConversion(_exprSrc, nubSrc, _typeDest, _needsExprDest, out _exprDest, true);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (18)
980
if (!canCast(type1, type2, CONVERTTYPE.
NOUDC
) && !canCast(type2, type1, CONVERTTYPE.
NOUDC
))
1288
mustCast(pArgument, uofs.GetType(), CONVERTTYPE.
NOUDC
);
1698
return typeTmp != type ? mustCast(pExprResult, type, CONVERTTYPE.
NOUDC
) : pExprResult;
1721
Expr op = mustCast(exprVal, arg.Type, CONVERTTYPE.
NOUDC
);
1958
arg1 = binder.mustConvert(arg1, GetPredefindType(PredefinedType.PT_OBJECT), CONVERTTYPE.
NOUDC
);
1959
arg2 = binder.mustConvert(arg2, GetPredefindType(PredefinedType.PT_OBJECT), CONVERTTYPE.
NOUDC
);
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
);
2104
return binder.MustCastInUncheckedContext(exprRes, typeEnum, CONVERTTYPE.
NOUDC
);
2256
op = mustConvertCore(op, GetPredefindType(PredefinedType.PT_LONG), CONVERTTYPE.
NOUDC
);
2624
if (!canConvert(arg1.Type.StripNubs(), paramsRaw[0], CONVERTTYPE.
NOUDC
))
2628
if (!canConvert(arg2.Type.StripNubs(), paramsRaw[1], CONVERTTYPE.
NOUDC
))