How to group C# properties with methods

0 votes
asked Feb 23 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 by plantuml (289,760 points)
selected Feb 24 by Kenjutsu
 
Best answer

You can have this.

Does it help ?

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

Yes, thank you. That is what I want cool

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

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