C#-应用程序显示函数之间的所有依赖关系? [英] C# - Application to show all dependencies between functions?

查看:101
本文介绍了C#-应用程序显示函数之间的所有依赖关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有某种应用程序可以分析源代码并以图形方式显示功能之间的所有联系?



我需要它来处理我正在使用的遗留代码-它庞大,功能强大且编写不当...:(

解决方案

NDepend可以管理)




Is there some kind of an application that analyzes source code and graphically shows all the connections between function?

I need it for a legacy code I'm working on - It's huge , functional and badly written... :(

解决方案

NDepend can manage calling graph well indeed as suggested madgnome. Let me develop a bit. First you can ask for the call Graph with a CQL query, second you can export the query result to the Dependency Graph or Dependency Matrix.

Concretely, below we ask for methods' callers of the class AppDomain in NUnit 2.4.8 (it could be a method, a field, a namespace ... whatever). This menu could appear also in Visual Studio thanks to the NDepend VS addin.

Then a CQL query is generated for us, we can see that 30 methods are matched in the calling graph. We have the option to export hese set of methods o a graphical graph...

...and here is the outputed graph (see a large version picture of this graph here)

这篇关于C#-应用程序显示函数之间的所有依赖关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆