Search code examples
visual-studio-2008idisposablecompiler-warnings

Can Visual Studio warn me when I forget to dispose an IDisposable object?


Can Visual Studio 2008 be configured to give me a warning when I forget to dispose an object that implements IDisposable?


Solution

  • Visual Studio, by itself does not have this feature, but with CodeRush you can have design time warnings and refactorings to insert using blocks where needed.