Book a Demo

Author Topic: C# code engineering issues  (Read 2980 times)

foldedwave

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
C# code engineering issues
« on: January 18, 2013, 11:18:22 pm »
When I import and then regenerate (from scratch) code using ea, one of the issues I have with C# code is that a lot of the using statements are missing from each file (e.g. using System;). My guess is that this is down to ea not knowing about all of the libraries I'm using. One solution would seem to be importing all of the dlls into the project but this seems like overkill - I would expect ea to generate the code so that it was identical to the reversed code even if it includes using statements that it doesn't know about.

Does anyone have a workaround for this?

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: C# code engineering issues
« Reply #1 on: January 19, 2013, 01:53:02 am »
I'm not sure if s.th. similar is possible for C#, but for C/C++ code engineering you can specify 'imports' and 'headers' (not relevant for C#) for each class separately with the context menu 'Generate Code'.

You might find this document helpful.

HTH
Günther
« Last Edit: January 19, 2013, 01:53:27 am by Makulik »