Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Professional: class diagram tool

I would like to visually design my classes first and then convert them into actual code. I am using VS2010 professional edition. Please recommend me some good online resources for some good hints and practices. I attended a good session in a user group meeting and it was very inspiring to see how easily classes could be visually designed and then converted into code.

Thanks

like image 712
dotnet-practitioner Avatar asked Oct 01 '10 19:10

dotnet-practitioner


People also ask

Does Visual Studio have a UML tool?

Visio launches, and the new UML diagram file opens for editing. In Visual Studio, select a solution in the Solution Explorer. On the Project menu, click Add Existing Item. In the Add Existing Solution Item dialog box, select the UML diagram you want, and then click Open.

How do I display a UML diagram?

You can press Ctrl+F12 on the element to view a list of diagram elements and navigate between them. To see the list of methods, fields, and other code elements, select the appropriate icon on the diagram toolbar located on top of the diagram editor. next to them. icon to see class dependencies.


1 Answers

It's a built-in feature. Look at your Solution Explorer,

alt text

or right click your project/class and click View Class Diagram

alt text

Using the class diagram is quite easy.. Just as an example you can right-click your class and add method/field/whatever from there..

alt text

You can find some more info about how to use it here.

There is also the extension for architecture tools.. here you can find an explanation + a link for download

like image 173
Oren A Avatar answered Nov 15 '22 15:11

Oren A