TED]]
> > Sent: Friday, May 03, 2002 5:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: [DOTNET] try...finally vs. nested using statements
> > WAS: From C#
> > to VB.NET
> >
> >
> > My sample below which uses try...finally does handle the case
> &
TECTED]
> Subject: [DOTNET] try...finally vs. nested using statements
> WAS: From C#
> to VB.NET
>
>
> My sample below which uses try...finally does handle the case
> properly if
> there is an exception thrown in either the command constructor or the
> connection cre
My sample below which uses try...finally does handle the case properly if
there is an exception thrown in either the command constructor or the
connection creation.
For example if the connection is properly constructed with no exceptions
then cn is not null and cn.Close() will be closed no matter