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