Code inspection: Possible ambiguity while accessing member by interface
This inspection reports an interface that inherits members which may become ambiguous when accessed through that interface. This usually happens when multiple base interfaces contribute members with the same signature in a way that can confuse overload resolution or member lookup.
Example
interface IA
{
void Log(int value);
}
interface IB
{
void Log(int value);
}
interface IC : IA, IB
{
}
How to fix it
The available quick-fix starts a rename for one of the conflicting members. A typical correction is to rename one of the inherited members or redesign the interface hierarchy to remove the ambiguity.
interface IA
{
void Log(int value);
}
interface IB
{
void WriteLog(int value);
}
interface IC : IA, IB
{
}
01 April 2026