我有一个这样的 XML 注释。
/// <summary>
/// Lorem ipsum
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
我想在其中放置一段(多行)代码。我该怎么做?
编辑
这是关于多行代码的信息 Adding line breaks to comments for Intellisense
最佳答案
/// <summary>
/// ...
/// <c>Place your code here</c>
/// </summary>
/// <code>
/// More code here
/// </code>
关于c# - 如何将代码示例放在 XML 注释中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12304785/