TryGetValue - Null or Value #4409
Unanswered
TonyValenti
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
-
You simply cannot write such a method. There is no constraint today that allows you to make a T be substituted with the nullable version of whatever type you substitute, regardless of whether it's a reference type or a value type. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
How do I nullable-annotate this:
So that I can call it using any combination of struct/class parameters.
Ie:
Beta Was this translation helpful? Give feedback.
All reactions