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