Does this .NET tool/utility exist? [closed]

瘦欲@ 提交于 2020-01-16 20:39:06

问题


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.


回答1:


  1. Right click the property and choose "Show as Association"
  2. Repeat for all properties with different classes



回答2:


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.



来源:https://stackoverflow.com/questions/1401484/does-this-net-tool-utility-exist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!