I have a dictionary which is sorted in descending order.Each string (key) is a term and the int (value) its count. How I get the first count? because it refers to the maximum count (frequency)……. thanks in advance.
Just to inform some of whom commented that the dictionary<string,int> will change its
rank. Be sure, if you are grouping the dictionary by its count, there is no problem
with the order . Always the dictionary will come with highest count at first.
What do you mean by ‘dictionary sorted in descending order’? A
Dictionary<TKey,TValue>by definition is unsorted! Do you meanSortedDictionary<TKey,TValue>? If so, you can use: