【问题标题】:Escape generic type parameter in <code> XML summary tag<code> XML 摘要标记中的转义泛型类型参数
【发布时间】:2019-12-03 00:16:50
【问题描述】:

我收到“XML 元素未关闭”的错误消息。我不确定如何转义 &lt;code&gt; 中的泛型参数。

/// <summary>
///     The configuration of the api specific
/// </summary>
/// <Remark>
///     Allows for dependency injecting configurations
/// </Remark>
/// <code>
/// private IOptionsMonitor<ApiConfig> _options;
/// </code>

【问题讨论】:

标签: c# .net-core


【解决方案1】:

Doc cmets 是 XML,需要被视为 XML。 &amp;lt;&amp;gt; 字符需要分别使用 &amp;lt;&amp;gt; 进行转义。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多