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.
Inconsistent accessibility: base interface 'interface 1' is less accessible than interface 'interface 2'
A public construct must return a publicly accessible object.
Interface accessibility cannot be narrowed in a derived interface. For more information, see Interfaces and Access Modifiers.
The following sample generates CS0061.
// CS0061.cs
// compile with: /target:library
internal interface A {}
public interface AA : A {} // CS0061
// OK
public interface B {}
internal interface BB : B {}
internal interface C {}
internal interface CC : C {}
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.