简体   繁体   English

Visual Studio 2008类图有更多详细信息吗?

[英]Visual Studio 2008 class diagram with more detail?

I am looking for a tool like (or that is) Visual Studio's class diagram generator, but with more detail. 我正在寻找像(或就是)Visual Studio的类图生成器之类的工具,但有更多详细信息。

Currently the class diagram will show a hierarchical overview of the classes and inheritance. 当前,类图将显示类和继承的层次结构概述。 So say there are three classes layed out as such 所以说,这样布置了三个班级

BaseClass -> GeneralClass : BaseClass -> SpecificClass : GeneralClass BaseClass > GeneralClass : BaseClass > SpecificClass : GeneralClass

Visual Studio will show this nicely in a tree structure in the class diagram. Visual Studio将在类图中以树形结构很好地显示此内容。

What I want to see is the classes each of those classes reference. 我想看到的是每个这些类引用的类。

So say GeneralClass instantiates and uses a class of type GeneralClassWorkerThread , I want that to be listed in the class diagram too. 所以说GeneralClass实例化并使用GeneralClassWorkerThread类型的类,我也希望在类图中列出该类。 I don't want to just a inheritance tree, but more of a using/utilizing tree? 我不想只是一个继承树,而是更多的使用/利用树?

Is there anything like this out there? 那里有这样的东西吗? Can Visual Studio do this itself? Visual Studio可以自己做吗?

At the very least, what would the name of such a graph be so I can continue my search? 至少,这样一个图的名称是什么,以便我可以继续搜索?

Its only taken a few weeks but I finally found something usable from this SO post . 只用了几个星期,但我终于从这篇SO帖子中找到了可用的东西。

Specifically Altova UModel , load a visual studio project file and it will do the rest. 特别是Altova UModel ,加载一个Visual Studio项目文件,其余的工作将完成。 It cost $ but has a free trial period which is more than enough to just generate a graph as described in the OP. 它的价格为$,但有一个免费试用期,这足以生成OP中所述的图形。

This could be done with reflection but it proved to be a overbearing given the amount of information that can be gained via reflection. 可以通过反射来完成,但是事实证明,鉴于通过反射可以获得的信息量很大。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM