title: Convert list to params C#
body: <p>I have this following list:</p>
  
  <pre><code>var myList = new List&lt;KeyValuePair&lt;string, object&gt;&gt;();
  </code></pre>
  
  <p>And this function:</p>
  
  <pre><code>public void Test(params KeyValuePair&lt;string, object&gt;[] list)
  </code></pre>
  
  <p>How can I do a conversion of the list to params when using the function?
  Like that:</p>
  
  <pre><code>Test(myList);
  </code></pre>