Hi,
For subclasses, protected members are accessible. As far as I'm concerned you could access protected members through subclasses.
You could create a new class that derives from your existing unmanaged class, and re-exposes the protected members (TestFunction) as public. Then create a managed class to wrap your newly-derived class, and have it expose those originally-protected members as protected in the managed type hierarchy.
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.