title: Does reflection expose if the last argument for a method was marked with 'params'?
body: <p>Using reflection on a method definition I would like to find out if the original method was defined with 'params' on the last parameter. So can I discover if the original definition was this...</p>
  
  <pre><code>public void MyMethod(int x, params object[] args);
  </code></pre>
  
  <p>...and not this...</p>
  
  <pre><code>public void MyMethod(int x, object[] args);
  </code></pre>
  
  <p>My code has a list of arguments and is using reflection to call an arbitrary method. If it is marked with 'params' then I want to package up the extra parameters into an object[] and call the method. If the argument is not marked with 'params' then I would indicate an error instead. So I want to provide the same semantics as C#.</p>
  
  <p>But I cannot find any docs that indicate how to discover this using reflection.</p>