title: C# GetMethod doesn't return a parent method
body: <p>I have the following class tree:</p>
  
  <pre><code>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
  {
  
  }
  </code></pre>
  
  <p>Given <code>SomeOtherClass parameter = new SomeOtherClass()</code>) this works:</p>
  
  <pre><code>typeof(B).GetMethod("GetMe", new Type[] { typeof(SomeOtherClass) })).Invoke(null, parameter));
  </code></pre>
  
  <p>But this:</p>
  
  <pre><code>typeof(C).GetMethod("GetMe", new Type[] { typeof(SomeOtherClass) })).Invoke(null, parameter));
  </code></pre>
  
  <p>throws a <code>NullReferenceException</code>, while I wish it would call the exact same method than above.</p>
  
  <p>I've tried several binding flags to no avail. Any help?</p>