C# coding style: comments

后端 未结 10 1432
后悔当初
后悔当初 2021-01-17 15:59

Most C# style guides recommend against the /* ... */ commenting style, in favor of // or ///. Why is the former style to be avoided?

10条回答
  •  说谎
    说谎 (楼主)
    2021-01-17 16:36

    My guess is because one requires explicit syntax on EACH line and one creates comments that can comment out large sections of code if the closing */ is not used. It's just not as safe.

提交回复
热议问题