Hi Mike,
They are both a bit criptic to me. How about this?
if (x != null)
{
x.Dispose();
}
Just kidding of course :-)
Tim
>>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.
Timothy Bryan