Wednesday, June 27, 2018

Comments

A best practice for all programming is to consistently use comments. It is
important when developing X++ programs in Microsoft Dynamics AX to use
comments and document what the code does and how parameters are used. It is
also good to know who made the change and why. When upgrading code, you
have to decide whether to merge code and if this is the case, how to merge it;
comments are useful to help determine why a code change is made. Note the
following about how to use comments:
Comments can be inserted directly into the lines of code.Comments are ignored by the compiler.Comments turn the code green in the editor.
Some of the comments include the following:
Single line "//"Block comments "/* */"To do comments "TODO." To do comments appear in the compiler'sTasks tab page.XML documentation comments// This is a single line comment
/* This is a block comment because
It contains more than one line */
/// <summary>
/// Comment where XML tags distinguish sections.
/// </summary>
The preceding XML documentation comments can be used to build XML
documents that contain developer documentation. The XML documentation
comments are also used to display "hover-over" help in the X++ editor. To
extract an XML documentation file from code, right-click a development project
node, and select
Add-ins > Extract XML documentation.

Best Regards,
Hossein Karimi

1 comment:

  1. I really enjoyed reading this informative and engaging blog post. You did a great job of explaining the topic in a clear and concise way, and I especially appreciated the examples and stories you included to illustrate your points. I can tell that you put a lot of thought and effort into this post, and it shows. Thank you for sharing your knowledge with the world! soundproofgears.com

    ReplyDelete

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...