by Oliver
27. January 2011 22:50
As I just read here on msdn, the modifiers protected and internal are orthogonal as in that they can be specified in all combinations and are combined with a logical OR. This means:
- protected members are accessible from inheriting classes
- internal members are accessible from classes within the same assembly
- protected internal classes are accessible from inheriting classes and all classes from the same assembly
The last option is maybe the most unclear – but just imagine a subclass defined in a different assembly and you’ll see what this might be good for :-)
Happy Coding, Oliver