Attribute to indicate result is not null when parameter is true? #51378
Unanswered
SoftCircuits
asked this question in
Q&A
Replies: 1 comment
-
I do not think there is a way currently. I think it's necessary to declare a different method which returns not-null. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have something like the following method.
With nullable reference types on, is there any attribute (or other way) to specify that this method never returns null as long as the
createNewIfEmpty
parameter istrue
?If there is no way, should there be?
Beta Was this translation helpful? Give feedback.
All reactions