Translate This Page
Translate this page
Browse by Tags
Tagged Content List
Cleaning up after yourself (Dispose(void) doesn't get called for you)
Despite my large and growing number of Dispose-related blogs, I really don't like writing about Dispose. Or rather, I don't like that Dispose is in such a confusing state that it requires so much reading material. :) But here we are again. I'd like to start posting some of the common Dispose questions...
18 Nov 2008
When to call Dispose
A recent internal email thread unearthed extreme differences of opinion about when Dispose(void) should be called on an IDisposable. This led to a long discussion and a realization that -- while it seems like we’ve said everything there is to say about Dispose -- it’s time for some more Dispose guidance...
6 Nov 2008
Difference between Disposing and Finalizing (referral)
I've gotten some pings on the difference between Disposing and Finalizing, which I didn't discuss in my Dispose/Close post. Fortunately Brian Grunkemeyer has written an excellent blog on the topic: http://blogs.msdn.com/bclteam/archive/2007/10/30/dispose-pattern-and-object-lifetime-brian-grunkemeyer...
23 Mar 2008
The never-ending saga of Close/Dispose
I made some quick updates in my recent post to describe the difference between Close and Dispose for SqlConnection: http://blogs.msdn.com/kimhamil/archive/2008/03/15/the-often-non-difference-between-close-and-dispose.aspx If you're wondering about the difference between Close and Dispose for classes...
17 Mar 2008
The (often non-) difference between Close and Dispose
Some classes in the .NET framework, such as System.IO.FileStream, have both a Close() and Dispose() method. The natural question is what's the difference, and when you should use one versus the other. The framework guidelines refer to Close and Dispose in the following context: occasionally you may...
15 Mar 2008
Page 1 of 1 (5 items)
© 2014 Microsoft Corporation.
Privacy & Cookies