泛型 – XML评论 – 如何正确标记see also标签?

我有以下内容,我不知道如何在我的 XML评论中正确引用它:

public static class FooExtensions
{
    public static Nullable<T> FooX<T>(this Nullable<T> foo) { ... }
}


public class Bar
{
    /// <summary>
    /// Bar Function
    /// </summary>
    /// <seealso cref="??"/>
    public void BarFunc() { ... }
}

所以,我猜是< seealso cref =“M:MyNamespace.FooExtensions.FooX {T}(这个Nullable {T} foo)”/>,但如果这是正确的话,我不是100%.有人知道吗?

哦,我有ECMA PDF文档,但即便如此,我仍然无法弄明白.

解决方法

您不需要标记参数的这一部分,也不需要标记它的名称,因此您应该能够使用:

<seealso cref="MyNamespace.FooExtensions.FooX{T}(Nullable{T})"/>

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念