簡體   English   中英

轉義XML summary tag泛型類型參數

[英]Escape generic type parameter in <code> XML summary tag

我收到“XML 元素未關閉”的錯誤消息。 我不確定如何在<code>轉義通用參數。

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

Doc 注釋是 XML,需要作為 XML 處理。 <>字符需要使用&lt;進行轉義&lt; &gt; , 分別。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM