Hi,
I was wondering, which technique is a "better" way manage resources.
In my case, a data connection and a data reader.
I uses a nested "using" statement in a try/catch block rather than explicitly closing the reader and connection in a "finally' statement.
Which would you use and why?
Thanks,
Bob H
I was wondering, which technique is a "better" way manage resources.
In my case, a data connection and a data reader.
I uses a nested "using" statement in a try/catch block rather than explicitly closing the reader and connection in a "finally' statement.
Which would you use and why?
Thanks,
Bob H