I have declared following dictionary-
Dictionary> dictSource = new Dictionary>
{
{ DateTime.Now.AddDays(1), new List{ 1, "Programmers" }}, { DateTime.Now.AddDays(3), new List{ 90, "Testers" }}, { DateTime.Now.AddDays(2), new List{ 1, "Designers" }},
};
Then , I am extracting the records having minimum value of element at zero postion.
int MinValue = dictSource.Min(pair => pair.Value.ElementAt(0));var filteredresults = dictSource.Where(pair => pair.Value.ElementAt(0) == MinValue);
Above code returns 2 items-
1, "Programmers"1, "Designers"
Finally, I need to drill the 'filteredresults' collection so that it returns the item having minimum date.
So, I should get the '1, "Programmers"' as final value.
I have tried following but failing-
filteredresults = filteredresults.ToDictionary(s => s.Key, s.Value);
Any help please??

Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 14, 2015, 10:42 PM EDT
T K25 reputationPosted Jun 15, 2015, 3:25 AM EDT
T K25 reputationPosted Jun 22, 2015, 1:10 AM EDT