Code inspection: Non-public member in implementation class hides default implementation in interface
This inspection reports a non-public member that hides a member with the same signature and a default implementation in an implemented interface. That can be confusing because the class member and the interface member look like the same API, but they do not behave the same way.
Example
interface ILogger
{
void Log() { }
}
class FileLogger : ILogger
{
private void Log()
{
}
}
How to fix it
There is no dedicated code-changing quick-fix for this inspection. A typical correction is to rename the member, change its accessibility, or implement the interface member explicitly so the intent is clear.
interface ILogger
{
void Log() { }
}
class FileLogger : ILogger
{
private void WriteLog()
{
}
}
01 April 2026