Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a nice class diagram for built-in .net classes?

To get an overview for the CodeDom classes in .Net I tried to create a class diagramm using Visual Studio 2010 built-in class designer, but I did not find the way how I could feed the .Net built-in classes and types into it, the only I can get is to add my own classes from Class View window.

I also tried it with UML diagramms in VS2010, and I couldn't import the classes. I was looking for a similar option in MS Visio and though it does provide support for class diagramm I could not generate something there.

I found the AutoDiagrammer project on CodeProject webpage and tried to use it as a Reflector Add-In, but with no succcess either. I get only the message "Waiting for assembly" in the top of the add-in window and nothing happends.

like image 234
Alexander Galkin Avatar asked Nov 16 '11 12:11

Alexander Galkin


People also ask

How do I print a class diagram?

Open the class diagram. Click Print on the File menu.

How do I create a class diagram using Visual Studio code?

To create a class designer, right-click a project and select Class Diagram from the Add New Item dialog box. Then specify the name of the diagram. Visual Studio creates the item with the defined name and a . cd extension.


1 Answers

I was able to generate a class diagram for the entire namespace by:

  1. creating a new blank class diagram
  2. opening View->Object Explorer
  3. entering "codedom" and search
  4. drag and droping the System.CodeDom namespace to the blank diagram

I hope this is what you meant.

enter image description here

like image 162
Tim Santeford Avatar answered Nov 15 '22 03:11

Tim Santeford