Comments
There are three types of commenting syntax in C#—multi-line, single-line, and XML.
Multi-Line Comments
Multi-line comments have one or more lines of narrative within a set of comment delimiters. These comment delimiters are the begin comment /*and end comment */ markers. Anything between these two markers is considered a comment. The compiler ignores comments when reading the source code. Lines 1 through 4 of Listing 2.1 show a multiline comment:
1: /* 2: * FileName: HowdyParner.cs 3: * Author: Joe Mayo 4: */
Some languages allow embedded multi-line comments, but C# does not. Consider the following example:
1: /* 2: Filename: HowdyPartner.cs 3: Author: Joe Mayo 4: /* 5: Initial Implementation: 04/01/01 6: Change 1: 05/15/01 7: Change ...
Get C# Unleashed 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.