On Tue, 13 Jul 2004 21:37:01 -0700, Saravanan Durai <Saravanan
> wrote:
>Dispose method is used to clean up the unwanted resources like sqlconnections,command objects,
>
>dispose method will be called automatically if we create the instance in the following way
>
>using ( DBreader reader=sp.executereader)
>{
>
>}
>
>if DBreader is implemented idisposable interface then dispose method will be called
>automatically at the end of scope,
>
In fact, the only objects you can put inside a using clause are
objects implementing IDisposable!
--s
--
Scott
http://www.OdeToCode.com