我想在 UML 中对 c# 类属性和变量属性(不是 UML 属性)进行建模,但不知道该怎么做。
[AttributeForTheClass]
class SomeClass
{
[AttributeForTheField]
int SomeField;
[AttributeForTheMethod]
int SomeMethod(
[AttributeForTheParameter]int someParam)
{
...
}
}
你如何建模:
[AttributeForTheClass] 和 [AttributeForTheField] 和 [AttributeForTheMethod]
目前我们使用 Sparx Enterprise Architect。
我知道 c# 属性是 ac# 语言功能,但我不确定它们是否在 UML 中定义。
有人有解决方案吗?