title: Cannot convert "System.Collections.Hashtable" to type "System.Collections.Generic.Dictionary
body: <p>I am trying to create Dictionary in Powershell and pass it to C# function</p>
  
  <pre><code>$params= @{"abc"="123","xyz"=$False};
  </code></pre>
  
  <p>C# method accepts <code>Dictionary&lt;string,object&gt;</code> as arguments.</p>
  
  <p>When I try call <code>MyFunc($params)</code> from PowerShell, I am getting below error</p>
  
  <blockquote>
    <p>Cannot convert argument "arguments", with value:
    "System.Collections.Hashtable", for "MyFunc" to type
    "System.Collections.Generic.Dictionary2[System.String,System.String]":
    "Cannot create object of type
    "System.Collections.Generic.Dictionary2[System.String,System.String]"</p>
  </blockquote>