Book a Demo

Author Topic: C# Auto properties rev engineering does not work  (Read 3051 times)

Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
C# Auto properties rev engineering does not work
« on: March 06, 2010, 01:01:07 am »
I just reported the following as a bug.  In the mean time - does anyone have a workaround?

======

I have the following Auto Property in C# class:

        [DataMember]
        public ServiceMessage[] Messages { get; set; }

When I reverse engineer, EA does not see this as a reference and does not create an association.  I have to add it manually.

One the other hand, if I use a backing field:

       private ServiceMessage[] _messages;

        [DataMember]
        public ServiceMessage[] Messages
        {
            get { return _messages; }
            set { _messages = value; }
        }

EA WILL see the aggregation in _messages and create the association.  

EA should create the association in both cases.

Jeff Odell

  • EA User
  • **
  • Posts: 99
  • Karma: +0/-0
    • View Profile
Re: C# Auto properties rev engineering does not wo
« Reply #1 on: March 11, 2010, 01:34:31 am »
I submitted a bug report and got a reply that basically said:

1) We know about it; and
2) Fixing it is not a priority.

jlo

 :(