Dictionary Representation in Dictionary
I am creating UML diagrams that will represent C # code and I am a bit stumped. I currently represent Dictionary<object, object>
using a qualified association where qualification is the type of the key and the class at the end of the association is the type of the value.
Now I would like to introduce the type in UML, for example Dictionary<int, Dictionary<object, object>
. Is there any standard I can use to create relationships that accurately represent this relationship?
source to share
This line with angle brackets is just a declaration that says what kind of relationship the class will have. You cannot show the declaration in UML, except for a note (it might be useful too). But you can (and should) show the relationship itself. In practice, a string Dictionary<int, Dictionary<object, object>
can be taken as a strict declaration of a simple class diagram.
source to share