Open
Description
The Null Conditional operator when used in conjunction with a boolean function should result in a nullable value and not require parentheses around it before checking GetValueOrDefault or HasValue
Dim ids As List(Of Integer) = Nothing
If Not ids?.Any() Then
End If
vs
Dim ids As List(Of Integer) = Nothing
If Not (ids?.Any()).GetValueOrDefault Then
End If
Metadata
Metadata
Assignees
Labels
No labels