Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use < > in Visual Studio comments?

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<=index<=64</param>
like image 846
Freshblood Avatar asked Jul 16 '10 19:07

Freshblood


3 Answers

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>
like image 156
Kate Gregory Avatar answered Sep 28 '22 15:09

Kate Gregory


/// <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: 〈 〉

like image 35
Joshua Avatar answered Sep 28 '22 15:09

Joshua


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

like image 38
Psytronic Avatar answered Sep 28 '22 16:09

Psytronic