简体   繁体   English

如何在Visual Studio 2010的UML类图中将整数数组表示为类的属性?

[英]How do I represent integer array as attribute of a class in Visual Studio 2010's UML class diagrams?

How do I represent integer array as attribute of a class in Visual Studio 2010's UML class diagrams? 如何在Visual Studio 2010的UML类图中将整数数组表示为类的属性? I know hot to add normal integers, but I'm hoping that there is a way to do it other than adding [] to integer's name. 我知道加普通整数很热,但是我希望除了将[]添加到整数名称之外,还有一种方法可以做到这一点。

I'm new to UML, so I could be missing something obvious here. 我是UML的新手,所以这里可能会遗漏一些明显的东西。

Should I use Is ordered and Is unique? 我应该使用“有序”和“唯一”吗?

I would simply indicate the type as Integer and the multiplicity as *. 我只是将类型表示为Integer,将多重性表示为*。

It is not Ordered. 未订购。 Ordered is for collections that are sorted. 订购是针对已排序的集合。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM