How to get values after dictionary sorting by values with linq

Posted by user301639 on Stack Overflow See other posts from Stack Overflow or by user301639
Published on 2010-03-25T11:38:34Z Indexed on 2010/03/25 11:43 UTC
Read the original article Hit count: 280

Filed under:
|
|
|

hey,

I've a dictionary, which i sorted by value with linq, how can i get those sorted value from the sorted result i get

that's what i did so far

Dictionary<char, int> lettersAcurr = new Dictionary<char, int>();//sort by int value
var sortedDict = (from entry in lettersAcurr orderby entry.Value descending select entry);

during the debug i can see that sortedDic has a KeyValuePar, but i cant accesses to it

thanks for help

© Stack Overflow or respective owner

Related posts about LINQ

Related posts about dictionary