这应该更容易些...

我想在代码中的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>

As you can see, I found some answers that demonstrated adding < and > brackets. Interestingly, the good 'ol < br/ > line break does not create a line break in the Intellisense popup.

我觉得这很烦人...

有什么建议吗?

推荐答案

您可以使用<para />标记来生成分段符,也可以将文本在<para></para>标记中换行,以此作为对文本进行分组并在其后面添加空行的一种方式,但是<br />或类似的内容并不等同.(根据this个老的MS论坛帖子,这是精心设计的.)您可以从Documenting your code女士处获得本文档文章中的可用标记列表

示例(基于原始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>

.net相关问答推荐

从没有流的EventStore中读取流不存在异常

将多行参数传递给Power Shell中的DotNet Pack命令

在`MAUI`应用中使用Android`MediaPlayer`的`prepare`方法只在发布模式下和在物理设备上崩溃

如何使用 awslocal 通过 localstack 中的 cloudwatch events/eventbridge 触发 lambda

string.Format 如何处理空值?

如何以编程方式 Select ListView 中的项目?

HttpClient 和使用代理 - 不断得到 407

.NET - 实现捕获所有异常处理程序的最佳方法是什么

如何更改 double.ToString() 中小数点的符号?

参数命名:文件名还是文件名?

在 C# 中使用委托

如何从 .NET 中的流中获取 MemoryStream?

.net 自定义配置如何不区分大小写解析枚举 ConfigurationProperty

关于 Enumerable.Range 与传统 for 循环的 foreach 的思考

关闭 Visual Studio 中所有选项卡但当前选项卡的键盘快捷键?

使用 C# 设置全局热键

List 是否保证项目将按照添加的顺序返回?

在 .NET 中获取默认打印机的最佳方法是什么

EF Core 添加迁移构建失败

说明 C# 中 volatile 关键字的用法