The requested page is not available for the requested platform. You are viewing the content for Default platform.

Convert to Is Nothing (VB)

Converts an IsNothing method call to an Is Nothing check.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is placed on an IsNothing method call.
  • when an IsNothing method call is selected.

Examples

Private Function TestMethod(ByVal objVar As Object) As Boolean
    Return IsNothing(objVar)
End Function

Result:

Private Function TestMethod(ByVal objVar As Object) As Boolean
    Return objVar Is Nothing
End Function

Screenshot

rsConvertToIsNothingVB