title: How can you get the names of method parameters?
body: <p>If I have a method such as:</p>
  
  <pre><code>public void MyMethod(int arg1, string arg2)
  </code></pre>
  
  <p>How would I go about getting the actual names of the arguments?
  I can't seem to find anything in the MethodInfo which will actually give me the name of the parameter.</p>
  
  <p>I would like to write a method which looks like this:</p>
  
  <pre><code>public static string GetParamName(MethodInfo method, int index)
  </code></pre>
  
  <p>So if I called this method with:</p>
  
  <pre><code>string name = GetParamName(MyMethod, 0)
  </code></pre>
  
  <p>it would return "arg1". Is this possible?</p>