“Not … Is Nothing” versus “… IsNot Nothing”

前端 未结 5 1780
夕颜
夕颜 2020-12-29 03:33

Does anyone here use VB.NET and have a strong preference for or against using Not foo Is Nothing as opposed to foo IsNot Nothing? If so, why?

5条回答
  •  盖世英雄少女心
    2020-12-29 03:58

    foo IsNot Nothing

    The following line is straight from Microsoft's Visual Basic Coding Conventions:

    Use the IsNot keyword instead of Not...Is Nothing.

提交回复
热议问题