Quantcast
Channel: 2,000 Things You Should Know About C# » Visual Studio
Viewing all articles
Browse latest Browse all 21

#766 – Adding an Interface to a Class Diagram

$
0
0

If you add a class to a class diagram and the class implements one or more interfaces, you’ll see the interfaces show up on the class with the standard interface designator (a short line with a circle at the end).

766-001

 

You can also add an element to the class diagram that represents the interface itself.  To do this, just right-click on an interface and select Show Interface.

766-002

 

Once you do this, the interface will be added to the diagram.  You can then expand the basic element to see the members of the interface.

766-003


Filed under: Visual Studio Tagged: C#, Class Diagram, Interface, Visual Studio

Viewing all articles
Browse latest Browse all 21

Trending Articles