VS.NET class developer

Assume that the Creature class has a Habitat type property. Both classes are implemented in their .cs files. When I drag two classes from the class constructor onto the new class diagram, I don’t see the association line from Genesis to Habitat, while there is an association in the code. Am I doing something wrong, or is it just not yet implemented in VS?

+3
source share
4 answers

To show the connection with the property, right-click on it; "show as association" or "show collection association" (if necessary)

+2
source

. " "

+1

The class diagram does not display "lines" between each instance (property) of a type and its type. It would become very dirty very quickly.

If Genesis is derived from Habitat (which would not make sense), it would show a line for this. It shows rows for inheritance, and not every single field / property.

0
source

Habitat is a property in Genesis. They are not related to how the designer shows. The designer shows inheritance.

0
source

Source: https://habr.com/ru/post/1715776/


All Articles