2 overrides of IsPredefType
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
227
public override bool
IsPredefType
(PredefinedType pt)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\VoidType.cs (1)
21
public override bool
IsPredefType
(PredefinedType pt) => pt == PredefinedType.PT_VOID;
78 references to IsPredefType
Microsoft.CSharp (78)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (6)
266
if (typeGiven.
IsPredefType
(pt1))
270
if (typeGiven.
IsPredefType
(pt2))
672
if (fIntPtrOverride2 && !typeDstBase.
IsPredefType
(PredefinedType.PT_LONG) && !typeDstBase.
IsPredefType
(PredefinedType.PT_ULONG))
754
if (fIntPtrOverride2 && (typeTo.
IsPredefType
(PredefinedType.PT_INT) || typeTo.
IsPredefType
(PredefinedType.PT_UINT)))
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (5)
456
Debug.Assert(_typeSrc.
IsPredefType
(PredefinedType.PT_DECIMAL));
560
if (_typeSrc.
IsPredefType
(PredefinedType.PT_DECIMAL))
585
(_typeSrc.
IsPredefType
(PredefinedType.PT_OBJECT) || _typeSrc.
IsPredefType
(PredefinedType.PT_VALUE) || _typeSrc.
IsPredefType
(PredefinedType.PT_ENUM)))
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
369
(!exprSrc.Type.
IsPredefType
(PredefinedType.PT_STRING) || constant.Val.IsNullRef))
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
124
if (type.
IsPredefType
(PredefinedType.PT_DECIMAL))
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (5)
498
if (pConstValType.
IsPredefType
(PredefinedType.PT_DATETIME) &&
499
(pRawParamType.
IsPredefType
(PredefinedType.PT_DATETIME) || pRawParamType.
IsPredefType
(PredefinedType.PT_OBJECT) || pRawParamType.
IsPredefType
(PredefinedType.PT_VALUE)))
542
if (pParamType.
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (4)
118
((_flags & CONVERTTYPE.ISEXPLICIT) == 0 || (!_typeSrc.
IsPredefType
(PredefinedType.PT_FLOAT) && !_typeSrc.
IsPredefType
(PredefinedType.PT_DOUBLE))))
404
!_typeDest.
IsPredefType
(PredefinedType.PT_G_OPTIONAL))
452
if (!_typeDest.
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
316
if (!field.getType().
IsPredefType
(PredefinedType.PT_OBJECT))
330
if (!prop.getType().
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (10)
1016
else if (pDest.
IsPredefType
(PredefinedType.PT_G_IENUMERABLE) ||
1017
pDest.
IsPredefType
(PredefinedType.PT_G_ICOLLECTION) ||
1018
pDest.
IsPredefType
(PredefinedType.PT_G_ILIST) ||
1019
pDest.
IsPredefType
(PredefinedType.PT_G_IREADONLYCOLLECTION) ||
1020
pDest.
IsPredefType
(PredefinedType.PT_G_IREADONLYLIST))
1367
else if (pSource.
IsPredefType
(PredefinedType.PT_G_IENUMERABLE) ||
1368
pSource.
IsPredefType
(PredefinedType.PT_G_ICOLLECTION) ||
1369
pSource.
IsPredefType
(PredefinedType.PT_G_ILIST) ||
1370
pSource.
IsPredefType
(PredefinedType.PT_G_IREADONLYLIST) ||
1371
pSource.
IsPredefType
(PredefinedType.PT_G_IREADONLYCOLLECTION))
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (31)
983
if (type1.IsInterfaceType || type1.
IsPredefType
(PredefinedType.PT_STRING)
991
if (type2.IsInterfaceType || type2.
IsPredefType
(PredefinedType.PT_STRING)
1000
type1.IsClassType && !type1.
IsPredefType
(PredefinedType.PT_STRING)
1001
&& !type1.
IsPredefType
(PredefinedType.PT_DELEGATE));
1003
type2.IsClassType && !type2.
IsPredefType
(PredefinedType.PT_STRING)
1004
&& !type2.
IsPredefType
(PredefinedType.PT_DELEGATE));
1645
Debug.Assert(type.
IsPredefType
(PredefinedType.PT_DECIMAL));
1765
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_DECIMAL) && arg2.Type.
IsPredefType
(PredefinedType.PT_DECIMAL));
1807
Debug.Assert(arg.Type.
IsPredefType
(PredefinedType.PT_DECIMAL));
1828
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_STRING) || arg2.Type.
IsPredefType
(PredefinedType.PT_STRING));
1841
Debug.Assert(arg2.Type.
IsPredefType
(PredefinedType.PT_INT));
1859
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_BOOL) || arg1.Type is NullableType argNubType1 && argNubType1.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1860
Debug.Assert(arg2.Type.
IsPredefType
(PredefinedType.PT_BOOL) || arg2.Type is NullableType argNubType2 && argNubType2.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1869
Debug.Assert(expr1.Type.
IsPredefType
(PredefinedType.PT_BOOL) || expr1.Type is NullableType expNubType1 && expNubType1.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1870
Debug.Assert(expr2.Type.
IsPredefType
(PredefinedType.PT_BOOL) || expr2.Type is NullableType expNubType2 && expNubType2.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1912
Debug.Assert(arg.Type.
IsPredefType
(PredefinedType.PT_BOOL));
1938
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_STRING) && arg2.Type.
IsPredefType
(PredefinedType.PT_STRING));
1972
Debug.Assert(arg1.Type == arg2.Type && (arg1.Type.IsDelegateType || arg1.Type.
IsPredefType
(PredefinedType.PT_DELEGATE)));
2276
Debug.Assert(op1.Type.
IsPredefType
(PredefinedType.PT_FLOAT) || op1.Type.
IsPredefType
(PredefinedType.PT_DOUBLE));
2424
if (!typeRet.
IsPredefType
(PredefinedType.PT_BOOL))
2437
if (!typeRet.
IsPredefType
(PredefinedType.PT_BOOL))
2642
Debug.Assert(typeRetRaw.
IsPredefType
(PredefinedType.PT_BOOL));
2650
Debug.Assert(typeRetRaw.
IsPredefType
(PredefinedType.PT_BOOL));
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (3)
141
if (pDest.
IsPredefType
(PredefinedType.PT_IENUMERABLE))
171
if (pSource.IsReferenceType && pDest.
IsPredefType
(PredefinedType.PT_OBJECT))
462
if (pSource is AggregateType && pDest.
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Concatenate.cs (4)
16
Debug.Assert(first.Type.
IsPredefType
(PredefinedType.PT_STRING) || second.Type.
IsPredefType
(PredefinedType.PT_STRING));
24
if (type.
IsPredefType
(PredefinedType.PT_STRING))
29
Debug.Assert(second.Type.
IsPredefType
(PredefinedType.PT_STRING));
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (4)
168
pExpr.Type.
IsPredefType
(PredefinedType.PT_G_EXPRESSION) &&
188
if (expr.FirstArgument.Type.
IsPredefType
(PredefinedType.PT_STRING) && expr.SecondArgument.Type.
IsPredefType
(PredefinedType.PT_STRING))
1027
argtype.StripNubs().IsEnumType && desttype.StripNubs().
IsPredefType
(PredefinedType.PT_DECIMAL);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (2)
203
if (bnds.Count != 0 && bnds[0].
IsPredefType
(PredefinedType.PT_VALUE))
237
if (typeBnd.
IsPredefType
(PredefinedType.PT_ENUM) || nubArg.UnderlyingType == typeBnd)