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.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article
