I'm writing a simple compare function with the following signature:
/// <summary>
/// Casts two unsigned integers to signed integers and compares them
/// </summary>
/// <param name="arg1">Left side of inequality</param>
/// <param name="arg2">Right side of inequality</param>
/// <returns>
/// LESS_THAN if arg1 <----
/// </returns>
private static Inequality Compare(uint arg1, uint arg2)
I would like to put literal inequality symbols where the arrow is without triggering the XML parser. How can I do this?
If you want to see it in the documentation above the method itself, then you can't, just write it out in full, it's clearer too.
For all other purposes (like code insight, generated documentation, etc.), you can use the literal
<
Use
>
For greater than.
I cheat. I use these characters: ≪≫
/// <returns>
/// if arg1 ≪ 0 then return Inequality.EQUAL_TO
/// if arg2 == 2 ...etc
/// </returns>
Also useful for
/// <summary>
/// Checks if the List ≪ Dictionary ≪ int,string≫ ≫ is valid
/// </summary>
Looks OK in intellisense, in your code and in the VS produced documentation.
I keep a snippet that produces the following line
// ≪≫ ⇒ ◄==► ―― ≤ ≥ ... plus a few other specials
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With