2
Answers

How to retrieve top 10 elements in a Dictionary

Ask a question
George George

George George

16y
2.5k
1

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)