Is there a way to automatically check existing C# source code for instances of objects that are not properly disposed of ie. using try / catch / finally or using statements?
Or do I need to just manually look at the code?
Is there a way to automatically check existing C# source code for instances of
Share
Take a look at FxCop for VS2010 – I believe they restored the DisposeObjectsBeforeLeavingScope rule – which may do exactly what you want.