C# .NET ドキュメントに改行を追加する方法 質問する

C# .NET ドキュメントに改行を追加する方法 質問する

これはもっと簡単になるはずです...

コード内のXMLドキュメントに「コード化された」改行を追加したい

/// <summary>
/// Get a human-readable variant of the SQL WHERE statement of the search element. &lt;br/&gt;
/// Rather than return SQL, this method returns a string with icon-tokens, which 
/// could be used to represent the search in a condensed pictogram format.
/// </summary>

ご覧のとおり、< および > 括弧の追加方法を示した回答がいくつか見つかりました。興味深いことに、古き良き < br/ > 改行では、Intellisense ポップアップでは改行が作成されません。

これは迷惑だと思います...

助言がありますか?

ベストアンサー1

タグを使用して<para />段落区切りを作成したり、テキストを<para></para>タグで囲んでテキストをグループ化し、その後に空白行を追加したりすることはできますが、それに相当するもの<br />やそれに似たものはありません。(これ(古い MS フォーラムの投稿は設計によるものです。) 使用可能なタグのリストは、MS のこのドキュメント記事で入手できます。コードのドキュメント化

例(元の OP サンプルに基づく):

/// <summary>
/// <para>Get a human-readable variant of the SQL WHERE statement of the search element.</para>
/// Rather than return SQL, this method returns a string with icon-tokens, which 
/// could be used to represent the search in a condensed pictogram format.
/// </summary>

おすすめ記事