Please see following example:
Visual BasicPublic Class Class1
Public Function Foo() As Integer
Dim text As String = Nothing
'CRR0027 (correct)
Return text.Length
End Function
Public Function Bar() As Integer
Dim text As String = Nothing
With text
'No CRR0027 (but should be CRR0027)
Return .Length
End With
End Function
End Class
Hi Robert,
Thank you for providing the code sample. We have added check for the "With" statements to our analysis and now diagnostics is shown in both cases from your sample.