Quantcast
Viewing all articles
Browse latest Browse all 21

#765 – Adding Base or Derived Classes to a Class Diagram

You can use the class diagram to follow the inheritance chain for any class currently in the diagram, moving up to the class’ base class or down to the classes that derive from the class.

For example, let’s say that you’ve dragged the ArgumentException class onto a class diagram, from the Class View.

Image may be NSFW.
Clik here to view.
Capture

 

You can add the base class of ArgumentException to the diagram by right-clicking on the class and selecting Show Base Class.

Image may be NSFW.
Clik here to view.
765-002

 

The base class will now be shown on the diagram.

Image may be NSFW.
Clik here to view.
765-003

 

You can also show all derived classes of a particular class by right-clicking on the class and selecting Show Derived Classes.

Image may be NSFW.
Clik here to view.
765-004

 

Using this technique, you can easily browse through the classes in the .NET Framework.

Image may be NSFW.
Clik here to view.
765-005


Filed under: Visual Studio Tagged: C#, Class Diagram, Visual Studio Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 21

Trending Articles