Hello Guys,
Can you explain,
What's the difference between // comments, /* */ comments and /// comments?
Thanks
What’s the difference between // comments, /* */ comments and /// comments?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Posted Jul 11, 2011, 8:25 PM EDT
/* */ is used to comment an entire block like functions/ more than one line.
/*
this
is the same
for block comment
*/
/// As Sam said, is used to generate the xml documentation.
Hope you understood the difference.
Sam HobbsRank #107 · 20.5K reputationPosted Jul 11, 2011, 7:57 PM EDT
The triple-slash ("///") are for XML comments that the Visual Studio IDE does special things for. The other two are consistent with C/C++ so C# does the same. If it was important, you could research the history of C to determine why the two types of comments exist.