(--------)
You can have this.
Does it help ?
@startuml class foo { {method} public int Age { get; set; } } @enduml
Yes, thank you. That is what I want