Why Resharper does not suggest null-propagating on vb.net?
Answered
Why Resharper does not suggest null-propagating on vb.net?
Sub Main
Dim foo As Foo = Nothing
'This:
If foo IsNot Nothing Then
Dim any1 = foo.Bar
End IF
'Could be this:
Dim any2 = foo?.Bar
End Sub
Public Class Foo
Public Property Bar As Integer = 1
End Class
Please sign in to leave a comment.
Hello @...,
Unfortunately, it isn't implemented yet for VB. I've submitted a new ticket to YouTrack which you can comment or vote for it to be notified about status changes.