Author Topic: Importing c# does not import comments  (Read 3590 times)

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Importing c# does not import comments
« on: June 14, 2021, 07:50:13 pm »
Hi
I am importing c# code into my model and my comments are not imported as the element notes
For example
Code: [Select]
  public class AddManualTrackEventArgs : EventArgs
   {
      ///-------------------------------------------------------------------------------------------------
      /// <summary>  Altitude (metres AMSL). </summary>
      ///-------------------------------------------------------------------------------------------------
      public GeoLocation m_location;
In this example the comment for m_location is not imported
Can any one suggest a way doing this?

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13381
  • Karma: +387/-299
  • I'm no guru at all
    • View Profile
Re: Importing c# does not import comments
« Reply #1 on: June 14, 2021, 09:00:43 pm »
I don't use that feature much, so I would guess that EA's compiler just does not parse the comment. There's not much you could do about as to send a feature request.

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 7908
  • Karma: +109/-20
    • View Profile
Re: Importing c# does not import comments
« Reply #2 on: June 15, 2021, 08:06:29 am »
My only guess is that you've turned off 'Reverse' of comments at Start > Desktop > Preferences > Source Code Engineering.

GrahamL

  • EA User
  • **
  • Posts: 111
  • Karma: +2/-0
    • View Profile
Re: Importing c# does not import comments
« Reply #3 on: June 16, 2021, 06:00:28 pm »
I have those features turned on
If I create a cs file and import it the class comment is ignored
If I then add a class note to the class in EA and generate the code the original class note remains and the on created in EA is also included

qwerty

  • EA Guru
  • *****
  • Posts: 13381
  • Karma: +387/-299
  • I'm no guru at all
    • View Profile
Re: Importing c# does not import comments
« Reply #4 on: June 16, 2021, 06:27:24 pm »
Code generation and interpretatio have nothing in common. EA has an internal compiler for each of the languages. And how they work is completely unknown to us humans. The code gen in contrast uses that EA macro language you can alter.

q.