Mark Stevens wrote:
> On Sat, 19 Jul 2008 12:27:16 -0400, "George" <(E-Mail Removed)>
> wrote:
>
>> If you using "Using" statement then i do not see need to use try/finally
>> block. Use one or another. You do not need both. But in your case you want
>
> Correct me if I am wrong, but doesn't "using" tell the run-time system
> to release any resources as soon as possible?
No, it disposes the object at the end of the using block, not sooner.
> This is a little
> different from using the finally block to close the connection.
No, a using block is just syntactic sugar for a try...finally, so there
is actually no difference at all.
> Also, in answer to the original poster, it is often considered good
> style to only have one exit point from a method.
>
> Regards
> Mark
--
Göran Andersson
_____
http://www.guffa.com