Editorconfig Guide.e

Prefer IsNot expression

EditorConfig key: visual-basic-style-prefer-isnot-expression

Prefer IsNot expression

visual-basic-style-prefer-isnot-expression

This option controls whether the IsNot operator should be preferred over combining Not with Is.

Default value:

true

Possible values:

  • true
  • false

Examples

true
If str IsNot Nothing Then
false
If Not str Is Nothing Then