I suggest you ...

Allow Conditional attribute also to non void methods

Currently it's possible to use
[Conditional("CONDITION")]
only with void function. So we have to use #if with non void function to get a default value.
Please, extend the attribute in order to return a specified default value or null for reference type.

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Angelo Mascaro shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base