Does this .NET tool/utility exist? [closed]
Question
When I generate a Class Diagram using VS2008, say for a C# file XYZ.cs - I get a Class Diagram detailing all the Fields,Properties,Methods and Nested Types.
Is there a tool/utility, which will do the same for all the internal Class/Interface references I have used within this file.
For eg. I have a Property of the type ABC in XYZ.cs ...is there any way to get to show ABC and related reference on the class diagram of XYZ itself?
To be more precise: If my XYZ.cs has a property Biped of the type Mammal. The class diagram displays and lists Biped...what I would like to see is Mammal also listed as a hierarchical node in the diagram itself.
To put it simply the complete object tree for all types...for atleast the user defined types.
Solution
- Right click the property and choose "Show as Association"
- Repeat for all properties with different classes
OTHER TIPS
Altova UModel or Enterprise Architect. Both applications can reverse-engineer C# and Java code into UML diagrams, including class diagrams. To do this, they analyse the sourcecode or assemblies of your project.
I have used both but prefer UModel because it has less functionality. !!! EA is just overkill since it has a lot of other functionality related to project management, bug tracking and a lot more. Unfortunately, EA doesn't always allow you to undo certain actions. With UModel, you can always undo your mistakes and the user interface is more user-friendly, in my opinion.