See following examples:
Visual BasicPublic Class Class1
Public Shared Function Foo(text As String) As Boolean
'No CRR0027
Return (text IsNot Nothing) AndAlso
(text.Length > 0)
End Function
Public Shared Function Bar1(text As String) As Boolean
'CRR0027
Return Not (text Is Nothing) AndAlso
(text.Length > 0)
End Function
Public Shared Function Bar2(text As String) As Boolean
'CRR0027
Return Not String.IsNullOrWhiteSpace(text) AndAlso
(text.Length > 0)
End Function
Public Shared Function Bar3(text As String) As Boolean
'CRR0027
Return Not String.IsNullOrEmpty(text) AndAlso
(text.Length > 0)
End Function
End Class
Hello Robert,
Thank you for providing the code sample.
I have reproduced this issue on my side.
So, we will research it and notify you as soon as we have any results.