How to represent a .NET dictionary type in UML?

2019-07-13 10:38发布

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.

2条回答
倾城 Initia
2楼-- · 2019-07-13 11:13

I used to represent it with a qualified association

查看更多
Bombasti
3楼-- · 2019-07-13 11:21

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
查看更多
登录 后发表回答