Question

Is there a quick & dirty way of obtaining a list of all the classes within a Visual Studio 2008 (c#) project? There are quite a lot of them and Im just lazy enough not to want to do it manually.

Was it helpful?

Solution

If you open the "Class View" dialogue (View -> Class View or Ctrl+W, C) you can get a list of all of the classes in your project which you can then select and copy to the clipboard. The copy will send the fully qualified (i.e. with complete namespace) names of all classes that you have selected.

OTHER TIPS

Maybe you can write an XSL/XSLT to display only the class names from the XML generated by the XML documentation, if you have any.

I would probably build the assembly, and then use reflection to iterate over all the exported types... If you want some sample code you can find inspiration in http://www.timvw.be/presenting-assemblytypepicker/.

I've had success using doxygen to generate documentation from the XML comments in my projects - a byproduct of this is a nice, hyperlinked list of classes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top