You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(x==(MyEnum.A||MyEnum.B))orif(x=={MyEnum.A||MyEnum.B})orif(x==MyEnum.{A||B})if((int)x=={1||2})// leave the cast, because the enum is extending intif(x=={1||2})
The text was updated successfully, but these errors were encountered:
A proposal for reducing redundancy in comparison expressions.
into
The text was updated successfully, but these errors were encountered: