G
Guest
I'm trying to use reflection to lookup and invoke a specific instance of a
virtual method on a class. I can get the method easy enough, but the Invoke
method of MethodInfo states that it calls the correct virtual method based on
the passed in instance type. The problem is it doesn't point out a way to
invoke a specific instance of an implementation in the inheritance hierarchy.
I'm essentially attempting to invoke the base.MyMethod through reflection,
but can't find any way to do so. Any ideas?
virtual method on a class. I can get the method easy enough, but the Invoke
method of MethodInfo states that it calls the correct virtual method based on
the passed in instance type. The problem is it doesn't point out a way to
invoke a specific instance of an implementation in the inheritance hierarchy.
I'm essentially attempting to invoke the base.MyMethod through reflection,
but can't find any way to do so. Any ideas?