xxxxxxxxxx
Single Line Comments ( // )
Multi Line Comments (/* */)
XML Comments ( /// )
xxxxxxxxxx
// for single line comments
/* for multi line comments */
/// XML tags displayed in a code comment
xxxxxxxxxx
//This Is A Comment
//Comments don't change what
//Happens in the code, but they
//Help you understand your own code,
//So you can make more changes.
//To make a comment, use a "//" then
//Whatever your comment is.
xxxxxxxxxx
//How to comment on C#
//Single Line
/*Multi
Line
Comment */
//Thats how you comment
xxxxxxxxxx
// This is a single line comment
/* This is a multi-line comment
and continues until the end
of comment symbol is reached */
xxxxxxxxxx
// This is a comment in C#
If you want to write a multi-line comment, you can use /* and */, like this:
/* This is a multi-line comment in C# You can write multiple lines here */