I am trying to compare the arrays present within a dictionary,and pass the keys if arrays are same.I am using syntax something like this to check the values , Can anyone help with the correct syntax.
Dictionary<int, string[]> test = excel.GetSheetColumnPairs(xlWorkbook, myint);
//loop dictionary all elements
foreach (KeyValuePair<int, string[]> pair in test)
{
Console.WriteLine(pair.Key + "....." + pair.Value + "<br />");
}
//find dictionary duplicate values.
var duplicateValues = test.GroupBy(x => x.Value).Where(x => x.Count() > 1);
Console.WriteLine("<br /><b>dictionary duplicate values..........</b><br />");
//loop dictionary duplicate values only
foreach (var item in duplicateValues)
{
Console.WriteLine(item.Key + "<br />");
}