python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Difficulty defining nullability constraints
I have an extension function called TryGetValueAs which basically combines TryGetValue with a cast. The problem is that I keep getting nullability warnings and I can't seem to get it right.
I have the...

Rick de Water
Votes: 0
Answers: 2
How to Determine Nullability (NRT) of Generic Type Parameter?
For example, I might have a method with the following signature:
public async Task<ViewModel?> GetPersonUri()
Using reflection I would like to determine if the type parameter of Task is a nulla...
Dejan
Votes: 0
Answers: 1