write comments in C#.

Hi all!
Let’s talk today about how you can comment in C#.
First, we are writing some code and we need to comment it, what should we do?
We will use the signs “//” and write a comment.

For example:

// This is a one-line comment.
Console.WriteLine(…


This content originally appeared on DEV Community and was authored by Manzura07

Hi all!
Let's talk today about how you can comment in C#.
First, we are writing some code and we need to comment it, what should we do?
We will use the signs “//” and write a comment.

  • For example:
// This is a one-line comment.
Console.WriteLine("Hello World!");

so we can comment the code.

  • there is another way.
/* This is a multi-line comment */
Console.WriteLine("Hello World!");

as you can see we used the signs "/**/"


This content originally appeared on DEV Community and was authored by Manzura07


Print Share Comment Cite Upload Translate Updates
APA

Manzura07 | Sciencx (2024-08-19T14:16:27+00:00) write comments in C#.. Retrieved from https://www.scien.cx/2024/08/19/write-comments-in-c/

MLA
" » write comments in C#.." Manzura07 | Sciencx - Monday August 19, 2024, https://www.scien.cx/2024/08/19/write-comments-in-c/
HARVARD
Manzura07 | Sciencx Monday August 19, 2024 » write comments in C#.., viewed ,<https://www.scien.cx/2024/08/19/write-comments-in-c/>
VANCOUVER
Manzura07 | Sciencx - » write comments in C#.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/19/write-comments-in-c/
CHICAGO
" » write comments in C#.." Manzura07 | Sciencx - Accessed . https://www.scien.cx/2024/08/19/write-comments-in-c/
IEEE
" » write comments in C#.." Manzura07 | Sciencx [Online]. Available: https://www.scien.cx/2024/08/19/write-comments-in-c/. [Accessed: ]
rf:citation
» write comments in C#. | Manzura07 | Sciencx | https://www.scien.cx/2024/08/19/write-comments-in-c/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.