开发者

How to use < > in Visual Studio comments?

开发者 https://www.devze.com 2023-01-07 11:31 出处:网络
Below comment is just a piece of xml comment in VS but my problem is characters like < > that break the xml structure. How can I use them in an xml comment?

Below comment is just a piece of xml comment in VS but my problem is characters like < > that break the xml structure. How can I use them in an xml comment?

/// <param name="index">square index on board which 1<=ind开发者_JAVA百科ex<=64</param>


I would reword it to be more a sentence and less an equation:

/// <param name="index">square index on board, between 1 and 64</param>


/// <param name="index">square index on board which 1&lt;=index&lt;=64</param>

OR

/// <param name="index">square index on board which 1〈=index〈=64</param> 

The latter option is unicode: 〈 〉


Try encoding them? using &lt; and &gt;

0

精彩评论

暂无评论...
验证码 换一张
取 消