Identifies IDisposable instances that are not disposed and disposes them
This extension uses the Roslyn compiler platform to identify IDisposable-instances that are not disposed. IDisposable instances that are not disposed, usually lead to some hard-to-find errors like memoryleaks. The current version is able to find undisposed
Do you use Reactive Extension/Observables? - Then this is your extension.
Currently some of the reported problems can be fixed automatically:
Fields and Properties can be disposed in Dispose() method (the interface get implemented automatically)
Local variables and anonymous objects can be wrapped in using statements
Local variables can be disposed after last usage
For more information about the concepts of this extension, feel free to look at the project page.
If you stumple upon any errors, please submit an issue ticket on github.