Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to represent a .NET dictionary type in UML?

Tags:

c#

dictionary

uml

I'm creating a uml class diagram and I would like to know if anyone can assist me with this. I would like to know how to represent a dictionary type using UML notation. for example how can I represent the following dictionary(Dictionary<FileType,StorageType>)type in UML.

like image 808
Francis Tchatchoua Avatar asked Nov 28 '25 04:11

Francis Tchatchoua


2 Answers

I used to represent it with a qualified association

like image 127
Seb Avatar answered Nov 30 '25 17:11

Seb


It depends on what information you are trying to convey in your diagram. However you could:

  1. Attach a stereotype to your relationship
  2. Use an association class
  3. Use a Ternary association
  4. Decide the collection type is an implementation detail and not show it
  5. Discover some additional behaviours about the association and promote
like image 44
Bartlett Avatar answered Nov 30 '25 16:11

Bartlett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!