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