Thanks !
Richard Deeming wrote:
If the collection class is public, then trying to further restrict the type ...
In this case, the 'OuterClass is public; the whole point of this (encapsulation) is allowing access to the internal collections inside that outer class only by methods I expose. I think you are reading into this some broader issue.
Richard Deeming wrote:
... to those in the current assembly, or an approved list of assemblies, is usually a sign of a broken design.
I can easily imagine a scenario where a design of an outer class with private internal classes would be very useful. But, that is not relevant here. cheers, Bill
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch