IsNothing versus Is Nothing

后端 未结 9 1509
暗喜
暗喜 2020-11-29 23:51

Does anyone here use VB.NET and have a strong preference for or against using IsNothing as opposed to Is Nothing (for example, If IsNothing(a

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 23:54

    I initially used IsNothing but I've been moving towards using Is Nothing in newer projects, mainly for readability. The only time I stick with IsNothing is if I'm maintaining code where that's used throughout and I want to stay consistent.

提交回复
热议问题