views:

118

answers:

3

Is there a free, easy and quick tool which can generate class diagrams or maybe even a simple table containing the list of class and methods inside an C# assembly or a project? Basically what I need is just the list of class and methods in a readable format. It would be better if it takes the xml documentation as well, but it's not required.

I guess it should be not too hard to implement using Reflection.

A: 

Doxygen will do it by parsing C# source code but doesn't understand assemblies.

Andy Dent
+5  A: 

You could use Reflector with autodiagrammer addin. The demo version is enough for that usage.

This addin generates a class diagram from an assembly :

Class diagram example

madgnome
how come I don't have that add-in?
Louis Rhys
Add a link to http://reflectoraddins.codeplex.com/.
madgnome
is it just me or allot of the addins cannot be added? Error message: "The following add-in(s) failed to load:"
Louis Rhys
I've changed the link to link directly on http://www.codeproject.com/KB/cs/AutoDiagrammer.aspx where you can download AutoDiagrammer addin. I've just tested it, it works.
madgnome
A: 

You can use the Architecture tools in Visual Studio 2010 Ultimate. This allows you to generate "Dependency Graph". In readable way you can peek at your assembly by "Class View" which can be also found in Visual Studio. Hope this helps

Jarek