1 override of IsEnumType
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
288public override bool IsEnumType => OwningAggregate.IsEnum();
28 references to IsEnumType
Microsoft.CSharp (28)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (2)
415if (!_typeSrc.IsEnumType) 500Debug.Assert(_typeSrc.IsEnumType);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
106if (type.IsEnumType)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
517pRawParamType.IsEnumType && pConstValType == pRawParamType.UnderlyingEnumType
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
549if (_typeDest.IsEnumType)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (15)
841if (!info.typeRaw1.IsEnumType && !info.typeRaw2.IsEnumType) 865bool isValidForEnum = info.typeRaw1.IsEnumType 878if (info.typeRaw1.IsEnumType) 899ExpressionKind.Add => info.typeRaw1.IsEnumType ^ info.typeRaw2.IsEnumType, 900ExpressionKind.Subtract => info.typeRaw1.IsEnumType | info.typeRaw2.IsEnumType, 1163if (nonNub.IsEnumType) 1313if (pRawType.IsEnumType) 1635if (type.IsEnumType && type.FundamentalType > FUNDTYPE.FT_LASTINTEGRAL) 1691if (typeOne.IsEnumType) 2090Debug.Assert(((ExprCast)arg).Argument.Type.IsEnumType); 2682Debug.Assert(argType1.IsEnumType || argType2.IsEnumType);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Constant.cs (1)
78return Type.IsEnumType ? Enum.ToObject(Type.AssociatedSystemType, objval) : objval;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (7)
417if (typeL.IsEnumType) 425else if (typeL is NullableType nubL && nubL.UnderlyingType.IsEnumType) 432if (typeR.IsEnumType) 439else if (typeR is NullableType nubR && nubR.UnderlyingType.IsEnumType) 466if (didEnumConversion && expr.Type.StripNubs().IsEnumType) 494Debug.Assert(!(origOp.Type is NullableType nub) || !nub.UnderlyingType.IsEnumType); 1027argtype.StripNubs().IsEnumType && desttype.StripNubs().IsPredefType(PredefinedType.PT_DECIMAL);