C# 中的文档注释 - 不能在摘要中使用“<”或“>”
Documentation Comments in C# - Can't use '<' or '>' in Summary
谁能告诉我如何让它工作?
/// <summary>
/// I want to write: List<T>
/// </summary>
任何时候我使用“<”或“>”VS 都会放弃我...
<c>
或 <code>
不会成功。
您可以使用常规 xml 转义:
/// <summary>
/// I want to write: List<T>
/// </summary>
试试这个:
/// <summary>
/// I want to write: <see cref="System.Collections.Generic.List{T}"/>
/// </summary>
谁能告诉我如何让它工作?
/// <summary>
/// I want to write: List<T>
/// </summary>
任何时候我使用“<”或“>”VS 都会放弃我...
<c>
或 <code>
不会成功。
您可以使用常规 xml 转义:
/// <summary>
/// I want to write: List<T>
/// </summary>
试试这个:
/// <summary>
/// I want to write: <see cref="System.Collections.Generic.List{T}"/>
/// </summary>