Book a Demo

Author Topic: C# Properties in Class Diagram  (Read 5540 times)

magomerlano

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
C# Properties in Class Diagram
« on: February 17, 2003, 06:57:48 am »
Hi everybody,
i'm new to EA but I greatly appreciate it... i've just managed to convince my boss ordering 15 licenses..!   ;)

So, I'm trying some reverse engineering and there's one thing about C# properties that doesn't seem to work right: properties with get/set implementation are listed in the "methods" section, tagged with a property stereotype; in the "properties" section i only have the private variable "wrapped" by my interface properties.
Is there some option i have to change to make it work like expected?

Thank you,
Matteo

KFTL

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: C# Properties in Class Diagram
« Reply #1 on: February 25, 2003, 07:15:12 am »
How do you want it to work?  

Maybe I am not reading your post correctly but the "Attributes" section should contain the member variable and the "Operations" section should contain the property accessor.

All C# properties fall under the "Operations".  It makes sense since a property can have actual logic behind it and functions like a method instead a member variable.

The other reason it makes sense is because UML is language independent and the concept of properties in C# translates differently to C++ get/set methods.  The concept is what UML and class diagrams are all about.

HTH