任何工具从溶液中生成的类依赖图 [英] Any tool to generate class dependency graph from a solution
问题描述
有一个解决方案,有没有什么工具来生成类映射和他们之间的关系?
Have a solution, is there any tool to generate class map and their relationship?
推荐答案
如果您正在使用Visual Studio 2010中,您可以生成一个<一个href="http://blogs.msdn.com/b/jennifer/archive/2010/05/11/visual-studio-2010-how-to-understand-your-$c$c-using-dependency-graphs-sequence-diagrams-and-the-architecture-explorer.aspx">Dependency图表。
If you are using Visual Studio 2010, you can generate a Dependency Graph.
在菜单,请访问:
建筑的>的生成关系是不图的>的按类的
Architecture > Generate Dependecy Graph > By Class
下面是它显示了一个例子(在一个非常小的项目):
Here's an example of what it shows (in a very small project):
,你甚至可以看到两个类之间的依赖条件。看看下面的图片:
And you can even see the dependecies between two classes. Take a look at the following image:
如果您的扩展的类日志
,点击刮板
,你会看到什么方法被调用(在日志
)由刮板
。
If you expand the class Logger
and click on Scraper
, you will see what methods are being called (in Logger
) by Scraper
.
在这一刻我没有继承的例子,但你总是可以创建一个项目并测试它自己。
In this moment I don't have an example of inheritance, but you can always create a project and test it yourself.
这篇关于任何工具从溶液中生成的类依赖图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!