Visual Studio 2010 Class Diagram

Hi, is there a way in Visual Studio 2010 to automatically generate a sequence of function calls for a solution with multiple projects in it? I mean, which function is from a class in which the project calls other functions from the same project or another class or project.

I will be very grateful for the help in this. I have to dive into a really complex project without documentation.

+7
visual-studio-2010
source share
2 answers

I think it may depend on the version of Visual Studio 2010 you have.

If you need a sequence diagram: right-click anywhere in the method definition, and then click Create Sequence Diagram. I am sure that this is only Ultimate. MSDN docs: http://msdn.microsoft.com/en-us/library/ee317485.aspx

If you are talking about what happens with a function call, you can select the function name and right-click and then click on the call hierarchy to display all the functions that call it or call it. You can also generate a sequence diagram using the function name.

You can also create a class diagram. Either right-click on the solution / project diagram / etc-> or go to "Architecture" - "Create a dependency graph" - "Class diagram" to create a class dependency diagram for an open solution, then you can click the down arrow in the class to View how the functions in this class interact.

+5
source share

Another way: right-click on the projects / namespace / class, and then select "View chart class."

+3
source share

All Articles