如何使用 < >在Visual Studio评论?
-
16-09-2020 - |
题
下面的注释只是VS中的一段xml注释,但我的问题是这样的字符 < >
这打破了xml结构。如何在xml注释中使用它们?
/// <param name="index">square index on board which 1<=index<=64</param>
解决方案
/// <param name="index">square index on board which 1<=index<=64</param>
或
/// <param name="index">square index on board which 1〈=index〈=64</param>
后一种选择是unicode:〈 〉
其他提示
我会把它改写成更多的句子,而不是一个等式:
/// <param name="index">square index on board, between 1 and 64</param>
尝试对它们进行编码?使用<和>
不隶属于 StackOverflow