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