In the comments to an answer I wrote we had a discussion about memory leaks and IDisposable
where we didn\'t come to any real conclusion.
A class that h
It will not cause a memory leak. In fact, Dispose has absolutely nothing to do with memory management.
It will create a resource-leak. And while the GC will usually clean it up, this could be too infrequent and too late.
Omitting Dispose (using
) can slow down or even crash your App. In the case of file resources or Db connections it can even cause problems in other applications.