Skip to content

Proposal: Enum flag operation shorthand #7199

Answered by jnm2
rpetz asked this question in Language Ideas
Discussion options

You must be logged in to vote

The readability of including the target type in the expression is extremely valuable to me (and I would say a large majority of developers too).

So, under the target-typed name lookup, why not do this when you feel the enum name aids in readability?

[AttributeUsage(AttributeTargets.Class | Property | Field | Struct | Enum, AllowMultiple = true)]

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@rpetz
Comment options

@rpetz
Comment options

@jnm2
Comment options

jnm2 May 15, 2023
Collaborator

Answer selected by rpetz
@rpetz
Comment options

Comment options

You must be logged in to vote
2 replies
@rpetz
Comment options

@rpetz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants