Hi,
What is difference between close() and dispose() in c#.
Thanks, in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jiteendra SampathiraoPosted Aug 23, 2011, 1:55 AM
refer this LINK
Satyapriya NayakPosted Aug 22, 2011, 11:57 PM
The difference between calling the Close and Dispose methods on database connections. Close leaves the connection in a closed state; but, it is reusable—all properties, etc. can be accessed and Open can be called. On the other hand, after calling Dispose on a database connection as with any object, the connection object can no longer be accessed.
Refer below link also
http://dotnetguts.blogspot.com/2007/06/difference-between-close-and-dispose.html
Thanks