I have rarely needed to use this access modifier combination as I think that in all but the most extreme circumstances, it's an indicator of poor design. However, sometimes it is necessary to have helper classes like type converters and editors access the method inside your assembly, but only allow derived classes to access it in other use cases.
An example might be a call that turns a type into a string for the type converter. ToString()
generally isn't used for this purpose so you might have a ToPersistableString()
call that you want your type converter to use, so you make it internal
. Then you decide that people deriving from your class may well want to use this call as part of their own persistence scheme for their derived class so you make it protected
as well.
.NET Framework Use
AccessibilityNotifyClients
on Control
is protected internal
. Using Reflector, I can see that this was done so that the CheckedItemCollection
of CheckListBox
could access it when changing checked states.