Tuesday, 20 August 2013

Calling private method in BaseClass from a derived class with Reflection.Emit

Calling private method in BaseClass from a derived class with Reflection.Emit

I'm looking for a way to call a private method from a base class in a
derived classes with the TypeBuilder. I know this can be done by simply
invoking the method via reflection but attempting to call a passthrough
method generated with the typebuilder results in a MethodAccessException.
Has anyone found a way around this issue?

No comments:

Post a Comment