IBM Support

How to add comments to C# or VB.NET code so that they reverse engineer in Rational XDE model?

Troubleshooting


Problem

How to add comments to C# or VB.NET code so that they reverse engineer in Rational XDE model?

Resolving The Problem

QUESTION:

WINDOWS: How to add comments to C# or VB.NET code so that they reverse engineer in Rational XDE model?

ANSWER:

In C# :

1. Start typing three forward slashes immediately above the class, operation or attribute declaration.
VS.NET will automatically generate the following format:
/// <summary>
///
/// </summary>
2. Add your comment in the line sandwiched between opening and closing <summary> tag.
3. Save the source file.
4. Select the class in Model Explorer, and choose Synchronize command from the context menu.
5. When the class is selected in Model Explorer, the class comment appears in Model Documentation window. (Note: If Model Documentation is not currently available, go to View > Other Window > Model Documentation or use Ctrol+Shift+D keystroke).
When an attribute or an operation is selected in Model Explorer, a respective comment will appear in Model Documentation window.

Comments that do not comply with /// <summary> format, as well as comments inside the operation body will not appear in Model Documentation on reverse engineering.

In VB.NET:

Documentation that is preceded by a single quote (e.g. ' my comment goes here) and placed immediately above a class, operation or an attribute will appear in Model Documentation window. Comments inside the operation body will not appear in Model Documentation.



[{"Product":{"code":"SSAVLQ","label":"Rational XDE Professional .NET Edition"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.20.516.009","Edition":"","Line of Business":{"code":"","label":""}}]

Historical Number

142086089

Document Information

Modified date:
16 June 2018

UID

swg21130969