Book a Demo

Author Topic: Properties of attributes (c#)  (Read 2280 times)

kenan820

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Properties of attributes (c#)
« on: September 30, 2005, 11:41:19 am »
There has been a situation that's cropped up when I'm generating code from a property set up from an attribute.  The issue is when I create the property from an attribute then later change the attribute name.  The code generated is from the old code.  I cannot find a way to view what attribute a property has been set up from to be able to modify it.
« Last Edit: September 30, 2005, 11:42:58 am by kenan820 »

Kenan Dalley
Software Architect
CS*STARS

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Properties of attributes (c#)
« Reply #1 on: September 30, 2005, 04:36:50 pm »
Kenan,

That's because it isn't there...  :(

If you search the forum (I think in the Automation List) you should find I noted that the automation interface can't even get at it!

This is another part of EA's UI (Unique Interface)

Send in a bug report.

If you Reverse Engineer, you'll see EA just treats setters and getters as Operations.  And, to be fair, it may NOT be intuitively obvious that these are setters and getters.

Paolo
« Last Edit: September 30, 2005, 04:37:01 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Properties of attributes (c#)
« Reply #2 on: October 02, 2005, 04:50:43 pm »
The name of the attribute created can be found in the tagged values of a method.

If you reverse engineer a C# property it will get the property stereotype, and if it can match it too an attribute using the rules for creating properties it will do that too.

For languages without explicit properties in the language, EA will set the property stereotypes if it can match it to an attribute using the rule for creating properties.