title: How to initialize an dictionary with an array value?
body: <p>I have the following code:</p>
  
  <pre><code>public static Dictionary&lt;string, string[]&gt; dict = new Dictionary&lt;string, string[]&gt;() {
      "key1", { "value", "another value", "and another" }
  };
  </code></pre>
  
  <p>Which is incorrect. The Error List contains the following:</p>
  
  <blockquote>
    <p>No overload for method 'Add' takes 3 arguments</p>
    
    <p>There is no argument given that corresponds to the required formal parameter 'value' of 'Dictionary.Add(string, string[])'</p>
  </blockquote>
  
  <p>I basically just want to initialize my Dictionary with preset values. Unfortunately, I can't use code-wise initialization, because I'm working in a static class, which only has variables in it.</p>
  
  <p>I have already tried these things:</p>
  
  <ul>
  <li><code>... {"key1", new string[] {"value", "another value", "and another"}};</code></li>
  <li><code>... {"key", (string[]) {"value", "another value", "and another"}};</code></li>
  </ul>
  
  <p>But I had no luck. Any help is appreciated.</p>
  
  <p><strong>PS:</strong> If I use two parameters, the log says <code>can't convert from string to string[]</code>.</p>