コードインスペクション:<inheritdoc /> の使用は無効です
このインスペクションは、継承するドキュメントを判断できない <inheritdoc /> タグを報告します。 これは、ベースとなるドキュメント候補が存在しない場合、または複数の候補があり、タグが使用するドキュメントを指定していない場合に発生します。
サンプル
public interface IFirst
{
void M();
}
public interface ISecond
{
void M();
}
class C : IFirst, ISecond
{
/// <inheritdoc />
public void M() { }
}
public interface IFirst
{
void M();
}
public interface ISecond
{
void M();
}
class C : IFirst, ISecond
{
/// <inheritdoc cref="IFirst.M" />
public void M() { }
}
クイックフィックス
cref 属性を使用して、基本ドキュメント候補を指定します。
2026 年 6 月 12 日