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)
269
if (typeGiven.
IsPredefType
(pt1))
273
if (typeGiven.
IsPredefType
(pt2))
699
if (fIntPtrOverride2 && !typeDstBase.
IsPredefType
(PredefinedType.PT_LONG) && !typeDstBase.
IsPredefType
(PredefinedType.PT_ULONG))
781
if (fIntPtrOverride2 && (typeTo.
IsPredefType
(PredefinedType.PT_INT) || typeTo.
IsPredefType
(PredefinedType.PT_UINT)))
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (5)
457
Debug.Assert(_typeSrc.
IsPredefType
(PredefinedType.PT_DECIMAL));
561
if (_typeSrc.
IsPredefType
(PredefinedType.PT_DECIMAL))
586
(_typeSrc.
IsPredefType
(PredefinedType.PT_OBJECT) || _typeSrc.
IsPredefType
(PredefinedType.PT_VALUE) || _typeSrc.
IsPredefType
(PredefinedType.PT_ENUM)))
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (1)
377
(!exprSrc.Type.
IsPredefType
(PredefinedType.PT_STRING) || constant.Val.IsNullRef))
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
141
if (type.
IsPredefType
(PredefinedType.PT_DECIMAL))
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (5)
499
if (pConstValType.
IsPredefType
(PredefinedType.PT_DATETIME) &&
500
(pRawParamType.
IsPredefType
(PredefinedType.PT_DATETIME) || pRawParamType.
IsPredefType
(PredefinedType.PT_OBJECT) || pRawParamType.
IsPredefType
(PredefinedType.PT_VALUE)))
543
if (pParamType.
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (4)
119
((_flags & CONVERTTYPE.ISEXPLICIT) == 0 || (!_typeSrc.
IsPredefType
(PredefinedType.PT_FLOAT) && !_typeSrc.
IsPredefType
(PredefinedType.PT_DOUBLE))))
406
!_typeDest.
IsPredefType
(PredefinedType.PT_G_OPTIONAL))
454
if (!_typeDest.
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (2)
317
if (!field.getType().
IsPredefType
(PredefinedType.PT_OBJECT))
331
if (!prop.getType().
IsPredefType
(PredefinedType.PT_OBJECT))
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (10)
1017
else if (pDest.
IsPredefType
(PredefinedType.PT_G_IENUMERABLE) ||
1018
pDest.
IsPredefType
(PredefinedType.PT_G_ICOLLECTION) ||
1019
pDest.
IsPredefType
(PredefinedType.PT_G_ILIST) ||
1020
pDest.
IsPredefType
(PredefinedType.PT_G_IREADONLYCOLLECTION) ||
1021
pDest.
IsPredefType
(PredefinedType.PT_G_IREADONLYLIST))
1368
else if (pSource.
IsPredefType
(PredefinedType.PT_G_IENUMERABLE) ||
1369
pSource.
IsPredefType
(PredefinedType.PT_G_ICOLLECTION) ||
1370
pSource.
IsPredefType
(PredefinedType.PT_G_ILIST) ||
1371
pSource.
IsPredefType
(PredefinedType.PT_G_IREADONLYLIST) ||
1372
pSource.
IsPredefType
(PredefinedType.PT_G_IREADONLYCOLLECTION))
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (31)
1006
if (type1.IsInterfaceType || type1.
IsPredefType
(PredefinedType.PT_STRING)
1014
if (type2.IsInterfaceType || type2.
IsPredefType
(PredefinedType.PT_STRING)
1023
type1.IsClassType && !type1.
IsPredefType
(PredefinedType.PT_STRING)
1024
&& !type1.
IsPredefType
(PredefinedType.PT_DELEGATE));
1026
type2.IsClassType && !type2.
IsPredefType
(PredefinedType.PT_STRING)
1027
&& !type2.
IsPredefType
(PredefinedType.PT_DELEGATE));
1680
Debug.Assert(type.
IsPredefType
(PredefinedType.PT_DECIMAL));
1804
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_DECIMAL) && arg2.Type.
IsPredefType
(PredefinedType.PT_DECIMAL));
1847
Debug.Assert(arg.Type.
IsPredefType
(PredefinedType.PT_DECIMAL));
1869
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_STRING) || arg2.Type.
IsPredefType
(PredefinedType.PT_STRING));
1883
Debug.Assert(arg2.Type.
IsPredefType
(PredefinedType.PT_INT));
1902
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_BOOL) || arg1.Type is NullableType argNubType1 && argNubType1.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1903
Debug.Assert(arg2.Type.
IsPredefType
(PredefinedType.PT_BOOL) || arg2.Type is NullableType argNubType2 && argNubType2.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1913
Debug.Assert(expr1.Type.
IsPredefType
(PredefinedType.PT_BOOL) || expr1.Type is NullableType expNubType1 && expNubType1.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1914
Debug.Assert(expr2.Type.
IsPredefType
(PredefinedType.PT_BOOL) || expr2.Type is NullableType expNubType2 && expNubType2.UnderlyingType.
IsPredefType
(PredefinedType.PT_BOOL));
1957
Debug.Assert(arg.Type.
IsPredefType
(PredefinedType.PT_BOOL));
1984
Debug.Assert(arg1.Type.
IsPredefType
(PredefinedType.PT_STRING) && arg2.Type.
IsPredefType
(PredefinedType.PT_STRING));
2020
Debug.Assert(arg1.Type == arg2.Type && (arg1.Type.IsDelegateType || arg1.Type.
IsPredefType
(PredefinedType.PT_DELEGATE)));
2330
Debug.Assert(op1.Type.
IsPredefType
(PredefinedType.PT_FLOAT) || op1.Type.
IsPredefType
(PredefinedType.PT_DOUBLE));
2483
if (!typeRet.
IsPredefType
(PredefinedType.PT_BOOL))
2496
if (!typeRet.
IsPredefType
(PredefinedType.PT_BOOL))
2707
Debug.Assert(typeRetRaw.
IsPredefType
(PredefinedType.PT_BOOL));
2715
Debug.Assert(typeRetRaw.
IsPredefType
(PredefinedType.PT_BOOL));
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (3)
149
if (pDest.
IsPredefType
(PredefinedType.PT_IENUMERABLE))
180
if (pSource.IsReferenceType && pDest.
IsPredefType
(PredefinedType.PT_OBJECT))
477
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)
169
pExpr.Type.
IsPredefType
(PredefinedType.PT_G_EXPRESSION) &&
189
if (expr.FirstArgument.Type.
IsPredefType
(PredefinedType.PT_STRING) && expr.SecondArgument.Type.
IsPredefType
(PredefinedType.PT_STRING))
1028
argtype.StripNubs().IsEnumType && desttype.StripNubs().
IsPredefType
(PredefinedType.PT_DECIMAL);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (2)
207
if (bnds.Count != 0 && bnds[0].
IsPredefType
(PredefinedType.PT_VALUE))
241
if (typeBnd.
IsPredefType
(PredefinedType.PT_ENUM) || nubArg.UnderlyingType == typeBnd)