Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: GrahamL 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
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
-
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.
-
My only guess is that you've turned off 'Reverse' of comments at Start > Desktop > Preferences > Source Code Engineering.
-
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
-
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.