Book a Demo

Author Topic: Automatic Properties in C#  (Read 3077 times)

MylesRip

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Automatic Properties in C#
« on: November 05, 2009, 08:54:37 am »
The new-ish "automatic properties" feature of the C# language seems to stump EA.  It doesn't seem to recognize that a property defined with no explicit underlying field can still represent a relationship between two classes.  Is there currently a way around this?  Does Sparx intend to support this in the future?  If so, when might that be?  

son-of-sargasso

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: Automatic Properties in C#
« Reply #1 on: November 05, 2009, 09:25:40 pm »
 :) The same day microsoft releases a bug free secure operating system.  :)  

No, don't shoot me I'm innocent I tell you.

MylesRip

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automatic Properties in C#
« Reply #2 on: November 06, 2009, 02:59:53 am »
Ouch.  I've been using EA for about five years now and have never had a reason to consider moving away from it.  The quality of the product and the support has been phenomenal.  

However, if it can't understand language constructs that are likely to get lots of use, that could change very quickly.  (The same goes for being able to recognize relationships that use generic collections - a feature that I use extensively.)  I'm certainly not going to tell developers that they can't use automatic properties.  This could be a real show-stopper for me!  

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Automatic Properties in C#
« Reply #3 on: November 06, 2009, 03:15:54 am »
Hi Myles,

Send an official feature request to Sparx then.

IMHO having a class property, referring to another class, always results in a relationship between the participating class elements. No matter if there's an underlying field or not.

WBR
Günther

MylesRip

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Automatic Properties in C#
« Reply #4 on: November 06, 2009, 04:09:10 am »
I'll do that...  I know it might seem like a little thing, but it ends up having a major impact on the usefulness of the product in a C# environment.  I suspect I'm not the only one who feels that way.   ;)