Search code examples
c#visual-studiocomments

Documentation Comments in C# - Can't use '<' or '>' in Summary


Can anybody tell me how to get this working?

 /// <summary>
 /// I want to write: List<T>
 /// </summary>

Any time I use '<' or '>' VS gives up on me... <c> or <code> will not do the trick.


Solution

  • You can use regular xml escaping:

     /// <summary>
     /// I want to write: List&lt;T&gt;
     /// </summary>