How to represent a C# property in UML?

后端 未结 12 704
夕颜
夕颜 2020-12-08 19:03

Not quite an Attribute, not quite a Method. Stereotypes? <> <>?


I\'m retro-modelling an existin

12条回答
  •  醉梦人生
    2020-12-08 19:58

    In Visio you can create a <> stereotype for Attribute and just use this stereotype for each read-only attributes. Same for write-only. It'll show you a good notation:

    <> +PropertyName : int
    

    There is nothing ugly about it. The standard Visio's Changeable option is much more uglier in that it has no any visual representation and you actually need to open properties for each attribute in order to see it, no chances to see it on the printed diagram.

提交回复
热议问题