如何表示UML一个.NET字典类型? [英] How to represent a .NET dictionary type in UML?

查看:328
本文介绍了如何表示UML一个.NET字典类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个uml类图,我想知道是否有人可以帮助我这个。我想知道如何表示使用UML表示法的字典类型。
例如我如何表示下面的字典( Dictionary< FileType,StorageType> )在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.

推荐答案

这取决于你在图表中要传达的信息。不过,您可以:

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


  1. 在关系中附加原型

  2. 使用关联类别

  3. 使用三元关联

  4. 决定集合类型是实施详情,不显示

  5. 关于协会和宣传

  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

这篇关于如何表示UML一个.NET字典类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆