Support for negation in ConditionalAttribute #2742
Unanswered
maxkoshevoi
asked this question in
Language Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As can be seen in this or this post it's a common problem.
If
ConditionalAttribute
is a better way to write#if
around method calls, than it would be useful to support negation since#if
supports it and it's commonly used, so that developers could effortlessly refactor their code to useConditionalAttribute
.And there wouldn't be need to write something like this:
Beta Was this translation helpful? Give feedback.
All reactions