Language: VB.NET | Type: CODE_SMELL | Severity: Major
Tags: clumsy
The ... IsNot ... syntax is more compact and more readable than the Not ... Is ... syntax.
Module Module1
Sub Main()
Dim a = Not "a" Is Nothing ' Noncompliant
End Sub
End Module
Module Module1
Sub Main()
Dim a = "a" IsNot Nothing ' Compliant
End Sub
End Module