Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一行summary,我必须像这样纠正它:
summary
/** summary */
或者我可以这样写:
/** * summary */
我更喜欢第二个选项,但是使用第一个选项是否需要?
根据文档,“DocComments的大小可能是单行,但也可能跨越多行”(强调我的。)
所以,无论哪种方式,你都可以做到。