Disposer – IDisposable and Template pattern

I do a fair amount of GDI+ programming, and thus using a lot of IDisposable objects. But I also use template or factory methods alot in my apps, and that doesnt work well with disposable objects Imagine something like this: public abstract class MyRendererBase {       public void Render(Graphics g)       {             //use templated objects             Brush bgBrush = GetBackgroundBrush();…More