当我编写XML文档时,如何在方法概述中引用方法参数?

33

假设我有一个如下的方法:

    /// <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中的警告是:

未知引用链接目标

有什么建议吗?


4
未来使用时,以下是XML文档标记列表。 - Matthew Watson
1个回答

42

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接