There are 3 different types of comments in C#.
These include
1. Single Line Comment
The single line comment is specified using the symbol //
Eg:
// this is a AbundantCode comment
2. Multi Line Comment
The Multiline comment can be specified using the symbol /* */
Eg:
/* This is a test
comment */
3. XML Comment
This is a special kind of comment which is generally used for API documentation. The symbol /// is used to specify the XML comment in C#
Leave a Reply