title: C# GetMethod vs GetRuntimeMethod
body: <p>I am using <code>GetRuntimeMethod</code> to get a method out of type. Everything works fine but I have noticed that there is a <code>GetMethod</code>. What is the difference between the two?</p>
  
  <pre><code>this.target.GetType().GetRuntimeMethod(
      "MethodName",
      new System.Type[0]
  )?.Invoke(targetObject, null);
  </code></pre>
  
  <p>From the names I can only guess that <code>GetRuntimeMethod</code> works while the program is running. And <code>GetMethod</code> works during program compilation?</p>
  
  <p>Are there any advantages of using one instead of another? (This last question can be deductible from the answer to what is the difference between the two of course)</p>