I have a MehtodBase of a method and I need to know if that method is an implementation of a specific interface. So if I have the following class:
class MyClass : IMyInterface
{
public void SomeMethod();
}
Implementing the interface:
interface IMyInterface
{
void SomeMethod();
}
I want to be able to discover at runtime (using reflection) if a certain method implements IMyInterface.
See Question&Answers more detail:os