Book a Demo

Author Topic: Invalid C# code synchronization for initial values  (Read 3759 times)

Drc

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Invalid C# code synchronization for initial values
« on: April 27, 2005, 07:12:43 am »
Hello,
I have problem with synchronization c# code to EA model. When I define field in class with some initial value, something like this:
[NonSerialized]
private static ILog Log = LogManager.GetLogger(typeof(XY));

After reverse engeneering to EA model, initial value is set only to: LogManager.GetLogger

so when code generation is run again, result in code is:
private static ILog Log = LogManager.GetLogger
what of course wrong for compiler.

But for initial values like Hashtable, ArrayList etc. everything is correct.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Invalid C# code synchronization for initial va
« Reply #1 on: April 27, 2005, 03:11:17 pm »
What build of EA are you using?

I just checked and unless I'm mistaken, any build after 745 should do this correctly.

Are you still a registered user and can upgrade to the most recent version?  If you are then I suggest that you do that.

Simon

Drc

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Invalid C# code synchronization for initial va
« Reply #2 on: April 28, 2005, 01:13:39 am »
You are right, I have version 4.50 build 744, after downloading the latest version synchronization seems to be ok. Thanks.