I'm currently facing a large piece of legacy code which I have to understand and rewrite to make it more maintainable.

Is there a tool that would show let me explore easily the graph of the function calls in the file ?

Any text output like

Method1
    Method2
    Method3

Method2
    Method3

Or graphical like

Graph

could help a lot.

有帮助吗?

解决方案

Resharper allows your to inspect incoming or outgoing calls to a method.

I don't know of a way to do this in visual studio without a plugin.

Also, NDepend might be an option for you as well. I've never used it, but it looks like it can do what you're requesting.

其他提示

Visual Studio's Generate sequence diagram?

http://weblogs.asp.net/gunnarpeipman/archive/2009/11/20/visual-studio-2010-generating-sequence-diagrams-on-the-fly.aspx

Maybe that is only in Ultimate edition. But you can download trial of it from Microsoft Servers.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top