Compiler Error CS0528
'interface' is already listed in interface list
An interface-inheritance list includes a duplicate. An interface can only be specified once in the inheritance list.
The following sample generates CS0528:
C#
// CS0528.cs
namespace x
{
public interface a
{
}
public class b : a, a // CS0528
{
public void Main()
{
}
}
}
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: