Can you do that as VS tool?
Would be nice if it was released as a tool to be used in Visual Studio (when working on source codes directly) without requiring us to release .dll and only then check that dll with your program...
@ttodua A tool I made is not the same, but it does help during development time: https://github.com/jlennox/DisposableVisualizer
There's also a method using ReSharper: https://stackoverflow.com/questions/1189024/how-can-i-make-all-of-the-idisposable-classes-colored-differently-in-the-visual/28786445#28786445
Apologies if self promotion is disallowed, I'll edit/remove if requested.
Ouch, jlennox, not a thought about self-promotion, it doesn't matter to me :) even saying thank you for giving me some points and referring me your solution which might work for me.
(btw, about your SO comment- I have read that already :( and that's why I've opened another question :))