nullable constraint #4789
Replies: 3 comments
-
I think you should be putting null into nullable variables instead of corresponding nullable types. Otherwise what's the point of creating nullables at all? Shouldn't making to magic value to every type be enough? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'm missing something. First, I don't think you need generics here. However, if you want a generic method here, it would be:
This will give you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wrong.
Beta Was this translation helpful? Give feedback.
All reactions