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