Dusted Codes · Feb 20, 2016
Don't dispose externally created dependencies
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Today I wanted to blog about a common mistake which I often see during code reviews or when browsing open source projects in relation to the IDisposable interface. Heck, even Microsoft got it wrong when they wrote on how to implement the UnitOfWork pattern in an ASP.NET MVC application. 
 What I mean is this, in a very simplified way: 
 public interface IRepository : IDisposable
{
…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.