What is C# and how many types of comments in this language?
873
29-Nov-2021
Aryan Kumar
06-Jun-2023C# is a general-purpose, object-oriented programming language developed by Microsoft. It is a compiled language, which means that it is converted into machine code before it is executed. C# is a member of the .NET Framework, which is a collection of software libraries and tools that developers can use to create applications.
C# has three types of comments:
Here is an example of a single-line comment:
C#
Here is an example of a multi-line comment:
C#
Here is an example of a documentation comment:
C#
Comments are used to explain C# code and to make it more readable. They can also be used to prevent execution when testing alternative code.
Here are some of the benefits of using comments in C#:
Comments are a valuable tool for any C# developer. They can be used to improve the readability, testability, and documentation of C# code.
Ravi Vishwakarma
29-Nov-2021What is C#
C# is an object-oriented, type-safe, and managed language that is compiled by .Net framework to generate Microsoft Intermediate Language.
In C# have 3 types of comments.
Single line comments
Multiple line
XML Comments