Dispose on any ADO.NET object--even Connections or DataReaders.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
MVP, hRD
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
message
Should I make calls to .Dispose() for ado.net objects when I'm done with
them, or is it best to let .net's garbage collector handle these objects
after I'm done with them?
Thanks
As others have noted many of the ADO.NET object inherit IDisposable from
Component. So you really do need advice on what to dispose.
Here it is:
Dispose Connections and DataReaders.
Nothing else needs to be disposed.
David
[/quote:5235641a42]