Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'name' in explicit interface declaration is not an interface
An attempt was made to explicitly declare an interface, but an interface was not specified.
The following sample generates CS0538:
// CS0538.cs
interface MyIFace
{
void F();
}
public class MyClass
{
public void G()
{
}
}
class C: MyIFace
{
void MyIFace.F()
{
}
void MyClass.G() // CS0538, MyClass not an interface
{
}
}