How to group C# properties with methods

0 votes
asked Feb 23, 2023 in Question / help by Kenjutsu (120 points)
Good day

How should a C# property be described in PlantUML so that the property is grouped with the methods?

For example:

public int Age { get; set; }

Thank you

2 Answers

0 votes
answered Feb 23, 2023 by plantuml (294,960 points)
selected Feb 24, 2023 by Kenjutsu
 
Best answer

You can have this.

Does it help ?

@startuml
class foo {
{method} public int Age { get; set; }
}
@enduml
commented Feb 24, 2023 by Kenjutsu (120 points)

Yes, thank you. That is what I want cool

0 votes
answered Feb 23, 2023 by Todd Musheno (2,680 points)
commented Feb 23, 2023 by Todd Musheno (2,680 points)
You are exposing a the state of a class... not adding functionality...

From uml that would be how you would show that.
...