What are the different types of comments in c#?
Answer / Renu Sirohi
C# offers three types of comments:
1. Single-line comment (//): It starts with two forward slashes (//) and extends to the end of the line.
2. Multi-line comment (/* */): This type of comment can span multiple lines, as it begins with /* and ends with */.
3. Verbatim multi-line comment (@): This is used for embedding C++ or SQL code inside a string in C#. It starts with @ followed by three double quotes (""").
| Is This Answer Correct ? | 0 Yes | 0 No |
What is singleordefault c#?
What is boolean method?
What is ildasm and obfuscator in net?
What is the use of "default" and "Using" keyword?
What is overriding in c#?
what is collections and what is generics
What is multicast delegate explain with example?
What is instantiating a class?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
In which order the destructor is called for an inherited class?
Is c# lazy thread safe?
How can I produce an assembly?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)