title: How to unifiy two arrays in a dictionary?
body: <p>If you have two arrays <code>string[] a</code> and <code>int[] b</code> how can you get a <code>Dictionary&lt;string,int&gt;</code> from it most efficiently and with least code possible? Assume that they contain the same number of elements.</p>
  
  <p>For example, is this the best way?</p>
  
  <pre><code>Dictionary&lt;string,int&gt; vals = new Dictionary&lt;string,int&gt;();
  for(int i = 0; i &lt; size; i++)
  {
      vals.Add(a[i],b[i]);
  }
  </code></pre>