Re: [DOTNET] try...finally vs. nested using statements WAS: From C# to VB.NET

2002-05-03 Thread Peter Stephens
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 > &

Re: [DOTNET] try...finally vs. nested using statements WAS: From C# to VB.NET

2002-05-03 Thread Murphy, James
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

[DOTNET] try...finally vs. nested using statements WAS: From C# to VB.NET

2002-05-03 Thread Peter Stephens
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