I want to model c# class attributes and variable attributes (not UML attributes) in UML and am not sure how to do it.
[AttributeForTheClass]
class SomeClass
{
[AttributeForTheField]
int SomeField;
[AttributeForTheMethod]
int SomeMethod(
[AttributeForTheParameter]int someParam)
{
...
}
}
How do you model:
[AttributeForTheClass] and [AttributeForTheField] and [AttributeForTheMethod]
Currently we use Sparx Enterprise Architect.
I know that c# attributes are a c# language feature but I am not sure they are even defined in UML.
Anyone have a solution?