You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SA1648 is being reported when <inheritdoc /> is used on constructors within a subclass of the same signature of the parent. Although there may not be a solid standard for inheritdoc, Sandcastle's implementation seems to be taking on that role and calls out support for constructors (ReSharper as well):
I suggest that StyleCopAnalyzers supports this usage.
/// <summary>
/// A class
/// </summary>
public class A
{
/// <summary>
/// Initializes a new instance of the <see cref="A"/> class.
/// </summary>
/// <remarks>Initializes hardware...</remarks>
public A()
{
}
}
/// <summary>
/// B class
/// </summary>
public class B : A
{
/// <summary>
/// Initializes a new instance of the <see cref="B" /> class.
/// </summary>
/// <inheritdoc />
public B()
{
}
}
Reacted by Sedat Kapanoğlu, Mark Monteiro, Ben Page and ast-r
Activity
sharwell commentedon Jan 25, 2018
Agree, and this aligns with my proposal here: dotnet/csharplang#313 (comment)