Eugenio has an interesting take on IDisposable, or the needs for business developers to actually care about resource acquisition or release. He sez:
"The "using" statement is one step forward, but not enough in my opinion. In the same way you need to remember closing a connection, you need to remember using "using"."
Interesting stuff. I'm not sure the problem is as big as he makes it out though. If you forget to close, or Dispose something, it's likely more of a performance error than a resource leak. Eventually, the finalizer will clean up. (Yes, I can construct code that makes it a fatal bug, but it's not often occurring in practice.)
It would be nice to create a class that had deterministic finalization, when needed though.
I create content for .NET Core. My work appears in the .NET Core documentation site. I'm primarily responsible for the section that will help you learn C#.
All of these projects are Open Source (using the Creative Commons license for content, and the MIT license for code). If you would like to contribute, visit our GitHub Repository. Or, if you have questions, comments, or ideas for improvement, please create an issue for us.