Compiler Error CS0539
'member' in explicit interface declaration is not a member of interface
An attempt was made to explicitly declare an interface member that does not exist. You should either delete the declaration or change it so that it refers to a valid interface member.
The following sample generates CS0539:
// CS0539.cs
namespace x
{
interface I
{
void m();
}
public class clx : I
{
void I.x() // CS0539
{
}
public static int Main()
{
return 0;
}
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: