Why can't I do this?
internal class InsuranceClientFactory : IInsuranceClientFactory
{
internal Iws2SoapClient InsuranceClient()
{
}
}
internal interface IInsuranceClientFactory
{
Iws2SoapClient InsuranceClient();
}
I get the error:
Cannot implement an interface member because it is not public
There are a few questions where the class is public but the interface is not, but both of mine are internal. I don't want to expose this class or interface outside of my assembly. Seems an odd limitation.
This question C# internal interface with internal implementation, does state "If you are implicitly implementing an interface I believe that the member must be declared public." but this doesn't make sense to me, why can't you? seems justified?