title: Passing an array as `params` argument
body: <p>I have the following method:</p>
  
  <pre><code>void MyMethod(params object[] args)
  {
  }
  </code></pre>
  
  <p>which I am trying to call with a parameter of type <code>object[]</code>:</p>
  
  <pre><code>object[] myArgs = GetArgs();
  MyMethod(myArgs);
  </code></pre>
  
  <p>It compiles fine, but inside <code>MyMethod</code> I <code>args == { myArgs}</code>, i.e. an array with one element that is my original arguments. Obviously I wanted to have <code>args = myArgs</code>, what am I doing wrong?</p>
  
  <p>EDIT:<br>
  Jon Skeet was actually right, the <code>GetArgs()</code> did wrap the thing in an one element array, sorry for stupid question.</p>