I\'ve struck upon something I don\'t really understand.
I have a project, where I have an interface that is internal. The class that implements that interface is als
If you are implicitly implementing an interface I believe that the member must be declared public. In your example, CA
attempts to implicitly implement the X()
method but isn't declared public. If you want to keep X()
as internal then you should use explicit interface implementation.
void IA.X() { /* stuff */ }
However, I'll also add that making the X()
method public wouldn't do any harm anyway as the class is internal so that member is already restricted by that access modifier... That is, it's already effectively internal... So you might as well just make it public!