Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NOT (x Is Nothing) in 2005
Message
From
09/07/2007 11:24:56
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
07/05/2007 10:42:36
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01223034
Message ID:
01238624
Views:
5
>I know that I read in 2005 there is a short alternative to
>
>
>If Not (x Is Nothing) Then
>   x.Dispose
>End If
>
>
>in 2005, but I can't seem to find what it is. Anybody know?

I just found what I was looking for. The above code can be replaced with this:
If x IsNot Nothing Then
   x.Dispose
End If
It's a little more straightforward to me.
Very fitting: http://xkcd.com/386/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform