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