Managing relationships between C# elements
You can visualize relationships between C# elements and show or hide existing relationships.
About this task
You can show attributes as associations or show associations as attributes. You can also show operation signature and parent names.
Relationships
In class diagrams, a relationship is the connection between C# classes and other elements.
Showing related C# diagram elements based on relationships
You can populate a class diagram by showing existing C# elements that are related in specific types of relationships to the selected C# elements in the diagram.
Showing and hiding relationships
You can update an open class diagram or selected classifiers by showing or hiding relationships that match your selected criteria.
Showing attributes as associations
You can show attributes as association relationships in diagrams.
Showing associations as attributes
You can show associations as attributes in classifiers in diagrams.
UML relationship equivalents for .NET elements
The following table summarizes how UML relationships map to their .NET equivalents.
Related tasks
Creating and populating UML class diagrams
Harvesting visualized diagram elements for UML models
Populating UML modeling diagrams with code elements
Feedback