IsNot

We just upgraded some of our projects to Visual Studio 2005, and I have to say it is really like being able to write code in VB.Net that looks like:

if aObject IsNot Nothing then

End if

instead of

if not (aObject Is Nothing) then

End if

something always felt weird about the double negative in is not nothing. So it is an improvement (even if Microsoft wants to patent it.)

Now if somebody would just come up with an is Something I’m sold

if (aObject Is Something) then

End if

Written by Carlos on April 30th, 2007 with no comments.
Read more articles on Software Development.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .

Programming Blogs -  Blog Catalog Blog Directory