Comment Entries

Comment entries are written as a part of the program code. However, they are ignored during compilation. They provide more information about the program. Use of comment entries is considered a good programming practice because they enhance the readability of the code. Comment entries are primarily written by the author of the code to ensure that other programmers who access the code will be able to comprehend the actions that are being performed in the code.

C# supports two kinds of comment entries: regular comments and one-line comments.

Regular Comments

Regular comments are specified by using the /* and the */ sets of characters. The /* characters indicate the beginning of the comment entry and the */ characters indicate the ...

Get Special Edition Using C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.