【发布时间】:2021-12-21 14:55:42
【问题描述】:
我正在使用 XML 标记来记录我的程序,因此当我将鼠标悬停在我的类、方法等上时,我可以看到描述。我想在我的一个类上显示一个列表,如下所示:
/// <remarks>
/// <b>List of methods below</b>
/// <list type="table">
/// <listheader>
/// <term>
/// <see cref="MyMethod()"/>
/// </term>
/// <description>
/// <inheritdoc cref="MyMethod()"/>
/// </description>
/// </listheader>
/// </list>
/// </remarks>
public class MyClass
{
/// <summary>
/// Description of MyMethod()
/// </summary>
public void MyMethod()
{
// Do something
}
}
问题是 之外时,它会完美显示。有什么方法可以引用列表中对 MyMethod() 的描述吗?
【问题讨论】: