George George

George George

  • NA
  • 778
  • 0

How to retrieve top 10 elements in a Dictionary

Jul 21 2008 11:10 PM

Hello everyone,


Suppose I have a Dictionary object instance, Dictionary<string, int>, the int is always positive. I want to get top 10 elements from the Dictionary with the maximum 10 int values, any efficient way to do this?


thanks in advance,
George


Answers (2)