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?
For Example
If var1 IsNot Nothing Then
...
End If
and
If Not var1 Is Nothing Then
...
End If
I just want to know which one is better?
Are they both equally acceptable?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…