How do I easily identify classes that implement IDispose in Visual Studio?

Is it possible to identify classes that implement IDisposable. I was hoping to do so in the Visual Studio Color settings or with an addon.

I don't use Resharper and I have heard that FXcop has this feature. I was looking for something different than these options.

Answers


You can use the Class View and Object Browser to determine it. But going to the definition is the best idea as the MetaData generated will show you all the methods and the inheritance of the class


You can right click on the type and select go to definition. It should show you the public members of the class and the interfaces it implements. The object browser can also be used to see this.

However Brody's answer is usually the simplest way and works so long as someone hasn't implemented a method called Dispose but not implemented the IDisposable interface.


Look for the method Dispose() on the class.


Need Your Help

Wrapper or divs within it won't go to the bottom of certain pages on my site

html css image wrapper

On my site, all the pages of text, stay within the wrapper which goes to the bottom of the page. For some reason on a page with images, the wrapper doesn't go to the bottom, nor does the div which ...

Grails GoogleAppEngine no metadata problem

google-app-engine grails

I am trying to run grails on google app engine using JDO,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.