Wednesday 25 September 2013

Comments in C#?

Ques:-What is comments in C#?

Ans:-Comments can be used to document what the program does and what specific blocks or lines of code do.since the c# compiler ignore   the comment. you can include them anywhere in the program without affecting code.

There are following types of comment on C#-

single line comment
//for single line comment

Multiline comment
/* multiline comment*/


XML Tag comment line

/// XML tag comment in line code



No comments:

Post a Comment