XML文档:LT;见>有多个泛型类型参数标签 [英] XML Documentation: <see> tag with multiple generic type parameters

查看:156
本文介绍了XML文档:LT;见>有多个泛型类型参数标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个类的成员使用XML文档,并在一定的情况下,我想使用标签来引用泛型类型。这里的问题是,当指定了多个一般类型参数生成一个警告。这是很容易找到如何引用泛型类型用一个参数,因为这样的:

I'm trying to use XML documentation on the members of a class, and in a certain case I would like to reference a generic type using a tag. The problem here is that a warning is generated when multiple generic type parameters are specified. It was easy enough to find how to reference a generic type with a single parameter, as such:

<see cref="Func{int}" />



然而,试图像这样生成警告:

However, trying something like this generates the warning:

<see cref="Func{int, bool}" />



似乎我或者使用错误的语法与多于一种类型的参数,或者如引用引用当前不支持在C#中的XML文档。奇怪的是,我似乎无法找到在MSDN或文档沙堡这个的任何信息(我使用编译的文件当中,并且还抱怨的语法)。这里的任何澄清,将不胜感激。

It seems that I am either using the wrong syntax for references with more than one type parameter, or such references are not currently supported in XML docs for C#. Strangely enough, I can't seem to find any information about this on MSDN or in the Sandcastle docs (which I'm using to compile the documentation, and also complains about the syntax). Any clarification here would be appreciated.

推荐答案

使用了.NET的名字,而不是C#别名:

Use the .NET names, not the C# aliases:

<see cref="Func{Int32, Boolean}" />

这篇关于XML文档:LT;见&GT;有多个泛型类型参数标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆