Olipro
Selecting and filtering from a list with full nullable safety & warnings as errors
I see, if I'm understanding this right, whether it's allowed to work or not is dependent on whether or not you define constraints:
https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references#generics
54 replies
Selecting and filtering from a list with full nullable safety & warnings as errors
Arrays and structs that contain reference types are known pitfalls in nullable references and the static analysis that determines null safety. In both situations, a non-nullable reference might be initialized to null, without generating warnings.:cough:
54 replies
Selecting and filtering from a list with full nullable safety & warnings as errors
I suspect this isn't unique to
ValueTuple
- I imagine this is applicable to all struct
types and it seems this is by design:
https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references#structs54 replies