This is really more of a .NET question - I'm working to implement an internal interface among different concrete types of a base class for a polymorphic collection.
Why isn't this valid?
internal interface IMyInterface
{ void Test(); }
public class MyClass : IMyInterface
{
internal void Test() {...}
}
It finds a couple options OK:
public void Test() {...} <-- I don't want this, because I don't want it to be public!
void IMyInterface.Test() {...} <-- I'd rather not do this for code gen reasons.
The former is gotten without explicit implementation and the latter with explicit implementation.
Why isn't the very first one valid? I just don't get it.