51 references to GetPredefindType
Microsoft.CSharp (51)
Microsoft\CSharp\RuntimeBinder\Semantics\BinOpSig.cs (2)
89_type1 = pt1 != PredefinedType.PT_UNDEFINEDINDEX ? GetPredefindType(pt1) : null; 90_type2 = pt2 != PredefinedType.PT_UNDEFINEDINDEX ? GetPredefindType(pt2) : null;
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (8)
231GetPredefindType((PredefinedType)i) == null || 232GetPredefindType((PredefinedType)j) == null || 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)); 286return WhichTypeIsBetter(GetPredefindType(pt1), GetPredefindType(pt2), typeGiven);
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
364if (_binder.canConvert(GetPredefindType(PredefinedType.PT_ARRAY), _typeSrc, CONVERTTYPE.NOUDC))
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
305CType pIntType = GetPredefindType(PredefinedType.PT_INT); 1292CType type = GetPredefindType(predef); 1308return GetPredefindType(PredefinedType.PT_INT);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (36)
204CType typeSig1 = GetPredefindType(bos.pt1); 205CType typeSig2 = GetPredefindType(bos.pt2); 458CType typeBool = GetPredefindType(PredefinedType.PT_BOOL); 631resultType = GetPredefindType(PredefinedType.PT_BOOL); 926CType typeObj = GetPredefindType(PredefinedType.PT_OBJECT); 938CType typeDel = GetPredefindType(PredefinedType.PT_DELEGATE); 987type1 = GetPredefindType(PredefinedType.PT_ARRAY); 995type2 = GetPredefindType(PredefinedType.PT_ARRAY); 1174op, mustCast(pArgument, TypeManager.GetNullable(GetPredefindType(ptOp)))), nub); 1429if (canConvert(pArgument, typeSig = GetPredefindType(uos.pt))) 1445if (canConvert(pArgument, typeSig = GetPredefindType(uos.pt))) 1638type = GetPredefindType(PredefinedType.PT_INT); 1664type = GetPredefindType(PredefinedType.PT_INT); 1767CType typeDec = GetPredefindType(PredefinedType.PT_DECIMAL); 1791typeRet = GetPredefindType(PredefinedType.PT_BOOL); 1810CType typeDec = GetPredefindType(PredefinedType.PT_DECIMAL); 1862return ExprFactory.CreateBinop(ek, GetPredefindType(PredefinedType.PT_BOOL), arg1, arg2); 1874CType typeBool = GetPredefindType(PredefinedType.PT_BOOL); 1916CType typeBool = GetPredefindType(PredefinedType.PT_BOOL); 1945return CreateBinopForPredefMethodCall(ek, predefMeth, GetPredefindType(PredefinedType.PT_BOOL), arg1, arg2); 1958arg1 = binder.mustConvert(arg1, GetPredefindType(PredefinedType.PT_OBJECT), CONVERTTYPE.NOUDC); 1959arg2 = binder.mustConvert(arg2, GetPredefindType(PredefinedType.PT_OBJECT), CONVERTTYPE.NOUDC); 1961return ExprFactory.CreateBinop(ek, GetPredefindType(PredefinedType.PT_BOOL), arg1, arg2); 1992RetType = GetPredefindType(PredefinedType.PT_BOOL); 1998RetType = GetPredefindType(PredefinedType.PT_BOOL); 2023CType typeOp = GetPredefindType(ptOp); 2064NullableType typeOp = TypeManager.GetNullable(GetPredefindType(ptOp)); 2100CType typeOp = GetPredefindType(ptOp); 2191CType typeOp = GetPredefindType(ptOp); 2202CType typeDest = kind.IsRelational() ? GetPredefindType(PredefinedType.PT_BOOL) : typeOp; 2245CType typeOp = GetPredefindType(ptOp); 2256op = mustConvertCore(op, GetPredefindType(PredefinedType.PT_LONG), CONVERTTYPE.NOUDC); 2279CType typeDest = kind.IsRelational() ? GetPredefindType(PredefinedType.PT_BOOL) : op1.Type; 2365pCallT = mustConvert(pCallT, GetPredefindType(PredefinedType.PT_BOOL)); 2366pCallF = mustConvert(pCallF, GetPredefindType(PredefinedType.PT_BOOL)); 2713typeDst = GetPredefindType(PredefinedType.PT_BOOL);
Microsoft\CSharp\RuntimeBinder\Semantics\UnaOpSig.cs (1)
62_type = pt != PredefinedType.PT_UNDEFINEDINDEX ? GetPredefindType(pt) : null;