title: C# Supplying Custom Keys
body: <p>How to supply custom key as dictionary keys?</p>
  
  <p>When i execute the code: I receive</p>
  
  <pre><code>    int[] Keys={5567,51522,35533};
      string[] values={"one","two","three"};
      var dic = values.ToDictionary(key=&gt;Keys.ToArray());
      foreach (KeyValuePair&lt;int, string&gt; kv in dic)
      {
          Console.WriteLine("Key={0},value={1}", kv.Key, kv.Value);
      }
  </code></pre>
  
  <p>Error :<code>can not convery KeyValuePair&lt;int[],string&gt; to KeyValuePair&lt;int,string&gt;</code></p>