Skip to content

No warning about possilbe null value in tuple #68531

Answered by tfenise
asv7c2 asked this question in Q&A
Discussion options

You must be logged in to vote

https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references#structs

(List<int>, int) is just the struct ValueTuple<List<int>, int>, so the pitfall above applies here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RikkiGibson
Comment options

Answer selected by asv7c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants