Possible Duplicate:
Use reflection to invoke an overridden base method
Normally I can call my base class from within an overridden method like this:
public override void Foo(Bar b)
{
base.Foo(b);
}
How can I make this same call with reflection?
Edit: to explain a bit, I'm trying to use AOP to guard my library's entry points from uninitialized operation (in my case there is no "initialize" call prior to the library's usage). So the relevant calls will technically end up inside the class (by virtue of the AOP), but the pre-compiled code will be written in a separate class. In other words, I want the following advice applied to all of my entry points:
if (!initialized)
return base.<method>(<arguments>);
I suppose the IL trick shown in Use reflection to invoke an overridden base method will work for me - I was just hoping there was something cleaner in my case since it feels more legitimate.