J
jehugaleahsa
Hello:
I have a public abstract class. The concrete subclasses must pass an
instance of an internal class to the abstract class' ctor.
I like to make the constructors of my abstract classes protected.
However, since it has a parameter that is of an internal type, I am
forced to make it internal also. This is fine since no one outside my
library can see it.
However, I would prefer to restrict this even more, so that only
subclasses can see the ctor.
"protected internal" provides the relationship:
visible to code within the library OR ANY subclasses.
I want:
visible to code within the library AND internal subclasses.
I suppose there is no solution. I was hoping someone could give me
some insight, however.
Thanks,
Travis
P.S. - I can't make the abstract class internal since it implements a
public interface and the subclasses are public.
I have a public abstract class. The concrete subclasses must pass an
instance of an internal class to the abstract class' ctor.
I like to make the constructors of my abstract classes protected.
However, since it has a parameter that is of an internal type, I am
forced to make it internal also. This is fine since no one outside my
library can see it.
However, I would prefer to restrict this even more, so that only
subclasses can see the ctor.
"protected internal" provides the relationship:
visible to code within the library OR ANY subclasses.
I want:
visible to code within the library AND internal subclasses.
I suppose there is no solution. I was hoping someone could give me
some insight, however.
Thanks,
Travis
P.S. - I can't make the abstract class internal since it implements a
public interface and the subclasses are public.