Reverse engineering C# code comments (C# code)
The Reverser reverse engineers code comments.
Typically, the Reverser reverse engineers comments that precede and are on the same line as code elements. The comments are reverse engineered to the Description property of the item created for the code element.
For example, the code element for Class1 is prefixed by one comment line. The one comment line is reverse engineered to the Description property of the Class that is created in the Model.
Code
Modeler
//Description of Class1
line 1
class Class1
{
};
In the following example, the code element for Class1 is prefixed by two comment lines. The two comment lines are reverse engineered to the Description property of the Class that is created in the Model.
Code
Modeler
/*Description of Class1
line 1
Description of Class1
line 2*/
class Class1
{
};
In the following example, the comment follows the code element for Class1. The comment is reverse engineered to the Description property of the Class that is created in the Model.
Code
Modeler
class Class1 //Desc. of Class1
{
};
Was this helpful?