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() { ... }
}
所以,我的猜测是
,但我并不 100% 认为这是正确的。有谁知道吗?
哦,我有 ECMA PDF 文档,但即使如此我仍然无法真正弄清楚。
I have the following and I'm not sure how to properly reference this in my XML commenting:
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() { ... }
}
So, my guess is <seealso cref="M:MyNamespace.FooExtensions.FooX{T}(this Nullable{T} foo)"/>
, but I'm not 100% if that's correct. Does anyone know?
Oh, and I have the ECMA PDF document, but I still can't really figure it out even with that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要标记参数的
this
部分,也不需要标记它的名称,因此您应该能够使用它:You don't need to mark the
this
portion of the parameter, nor the name of it, so you should be able to use this: