如何从C#XML注释中引用构造函数?

如何从C#XML注释中引用构造函数?,c#,xml,constructor,comments,C#,Xml,Constructor,Comments,是否可以从C#XML注释中引用构造函数而不使用显式前缀(如M:或T:) 例如,由于编译器不喜欢“.ctor”,下面的代码会产生编译警告。尝试“PublishDynamicComponentAttribute.#ctor”是不好的, “PublishDynamicComponentAttribute.PublishDynamicComponentAttribute”也不好 /// <summary> /// Constructs a new <see cref="PublishE

是否可以从C#XML注释中引用构造函数而不使用显式前缀(如M:或T:)

例如,由于编译器不喜欢“.ctor”,下面的代码会产生编译警告。尝试“PublishDynamicComponentAttribute.#ctor”是不好的,
“PublishDynamicComponentAttribute.PublishDynamicComponentAttribute”也不好

/// <summary>
/// Constructs a new <see cref="PublishEntityAttribute"/> instance.
/// </summary>
/// <seealso cref="PublishDynamicComponentAttribute..ctor(Type)"/>
public PublishEntityAttribute(Type entityFactoryType) :
  base(entityFactoryType)
{
}
//
///构造一个新实例。
/// 
/// 
public PublishingEntityAttribute(类型entityFactoryType):
基本(entityFactoryType)
{
}
我确信类型本身是可见的

因此,我只能使用显式前缀M:,这将删除编译器验证,因此当类型被移动/重命名时,cref将无效


有什么建议吗?

您可以像调用构造函数一样指定构造函数,但要使用参数类型而不是参数值:


/// <seealso cref="PublishDynamicComponentAttribute(Type)"/>

/// 

这绝对正确吗?Resharper 7.0警告““”的签名不正确”,其“Show Quick Documentation”命令将其视为类链接。@Iain:它在我的R#7.0上工作,包括链接到构造函数而不是类。奇怪的是,我确实收到了警告。可能启用了不同的检查,可能是R#错误修复。。。