Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Class Diagram

Hello is there a way in Visual Studio 2010 to auto generate a function call flow diagram for an solution with multiple projects in it? I mean what function from which class in which project is calling other functions from the same project or different class or project.

I will really appreciate help with this. I have to dive into a really complicated project with no documentation.

like image 973
OBL Avatar asked Nov 09 '10 19:11

OBL


People also ask

Does Visual Studio have UML diagram?

In Visual Studio, in the Solution Explorer, select a solution. On the Project menu, click Add New Item. In the Add New Solution Item dialog box, click Visio Files, and then click UML. Under Templates, click a UML diagram, and then click Open.

How do I see the class diagram code in Visual Studio?

In Solution Explorer or Class View, right-click the project and choose View, then choose View Class Diagram.


1 Answers

I think it might depend on the version of visual studio 2010 you have.

If you want a sequence diagram: Right-click anywhere in the method definition, and then click Generate Sequence Diagram. I'm pretty sure this is Ultimate only. MSDN docs: http://msdn.microsoft.com/en-us/library/ee317485.aspx

If you're talking about seeing what function calling is going on, you can select the function name and right click then click view call hierarchy it will show all the functions that call it or it calls. You can also generate a sequence diagram via the function name.

You can also create a class diagram. Either right click on the solution/project/etc->Class Diagram or go to Architecture->Generate Dependency Graph->Class Diagram to make a class dependency diagram for the solution you have open, then you can click the down arrow on a class to view how the functions in that class interact.

like image 168
m4tt1mus Avatar answered Sep 27 '22 23:09

m4tt1mus