How to represent a .NET dictionary type in UML?

时光总嘲笑我的痴心妄想 提交于 2019-12-10 19:06:15

问题


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.


回答1:


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



回答2:


I used to represent it with a qualified association



来源:https://stackoverflow.com/questions/11689672/how-to-represent-a-net-dictionary-type-in-uml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!