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)
416if (!_typeSrc.IsEnumType) 501Debug.Assert(_typeSrc.IsEnumType);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
123if (type.IsEnumType)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
518pRawParamType.IsEnumType && pConstValType == pRawParamType.UnderlyingEnumType
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
551if (_typeDest.IsEnumType)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (15)
863if (!info.typeRaw1.IsEnumType && !info.typeRaw2.IsEnumType) 887bool isValidForEnum = info.typeRaw1.IsEnumType 900if (info.typeRaw1.IsEnumType) 921ExpressionKind.Add => info.typeRaw1.IsEnumType ^ info.typeRaw2.IsEnumType, 922ExpressionKind.Subtract => info.typeRaw1.IsEnumType | info.typeRaw2.IsEnumType, 1188if (nonNub.IsEnumType) 1339if (pRawType.IsEnumType) 1670if (type.IsEnumType && type.FundamentalType > FUNDTYPE.FT_LASTINTEGRAL) 1727if (typeOne.IsEnumType) 2141Debug.Assert(((ExprCast)arg).Argument.Type.IsEnumType); 2748Debug.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)
418if (typeL.IsEnumType) 426else if (typeL is NullableType nubL && nubL.UnderlyingType.IsEnumType) 433if (typeR.IsEnumType) 440else if (typeR is NullableType nubR && nubR.UnderlyingType.IsEnumType) 467if (didEnumConversion && expr.Type.StripNubs().IsEnumType) 495Debug.Assert(!(origOp.Type is NullableType nub) || !nub.UnderlyingType.IsEnumType); 1028argtype.StripNubs().IsEnumType && desttype.StripNubs().IsPredefType(PredefinedType.PT_DECIMAL);