假设我有一个方法如下:
/// <summary>
/// Here I want to reference the parameter <see cref="personId"/>.
/// </summary>
/// <param name="personId">
/// The person id.
/// </param>
/// <returns>
/// The <see cref="Person"/>.
/// </returns>
public Person GetPerson(int personId)
{
}
当我使用 SandcaSTLe 发布我的 XML 文档时,cref:
<see cref="personId"/>
转换为 [!:personId]。
SandcaSTLe 中的警告是:
Unknown reference link target
有什么建议吗?
最佳答案
使用 <paramref>
<paramref name="personId"/>
关于c# - 编写 XML 文档时如何在方法摘要中引用方法参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30255085/