Comments (*#_ ... _#*)

Top  Previous  Next

Pretranslated C# code > Preparing Delphi code > Frequent re-translation > Comments (*#_ ... _#*)

Frequent re-translations can be simplified by automatically insertions of prepared C# code. Delphi2C# interprets the extended Delphi brackets (*#_ ... _#*) in a special way. A text in such brackets is taken unchanged into the C# code.

 

For example an additional header is included into the C# code by the following line:

 

(*#_using System.SysUtils;_#*)

 

->

 

//# copied begin

using System.SysUtils;

//# copied end

 

Warning

 

Unfortunately, the positioning of comments is generally a difficult problem because code parsers usually ignore them. The subsequent insertion of comments occurs outside of certain parsed units and therefore sometimes not exactly in the expected places. The user may have to experiment a bit here.

 

 

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content