Small, but useful additions in .NET 2.0 – Part 1
The BCL in .NET 2.0 has a plethora of small additions, which are not that visible, but are very useful. I’ll try to cover many of these in my subsequent posts.
String.IsNullOrEmpty is one such method. As the name would indicate, this method returns true if the string argument passed to this method is either null (nothing in VB) or empty.
VB 2005 has some good additions too. Among others, I like the IsNot operator. How much more did you want this operator after writing code like this:
If Not obj Is Nothing
..
Then
Now,
If obj IsNot Nothing …looks much better.