У меня есть следующее дерево классов:
public class A
{
    public static object GetMe(SomeOtherClass something)
    {
        return something.Foo();
    }
}
public class B:A
{
    public static new object GetMe(SomeOtherClass something)
    {
        return something.Bar();
    }
}
public class C:B
{
}
public class SomeOtherClass
{
}
Учитывая SomeOtherClass parameter = new SomeOtherClass()), это работает:
typeof(B).GetMethod("GetMe", new Type[] { typeof(SomeOtherClass) })).Invoke(null, parameter));
Но это:
typeof(C).GetMethod("GetMe", new Type[] { typeof(SomeOtherClass) })).Invoke(null, parameter));
выбрасывает NullReferenceException, хотя я бы хотел, чтобы он вызывал тот же самый метод, что и выше.
Я пробовал несколько флагов привязки безрезультатно. Любая помощь?
