benleggiero
08/02/2017, 11:18 PMprotected
field as internal
solely for the extension function, but still as protected
everywhere else.
This should work out just fine, since the visibility from 3rd party code is unaffected. It's just exposing to the extension function the same capabilities a subclass would have, and extensions are (partially) a replacement for "utility" subclasses.