Пример #1
0
 public IEnumerable <KeyValuePair <string, int> > MostCommon(int n)
 {
     return(ValCount.OrderByDescending(o => o.Value).Take(n));
 }
Пример #2
0
 public KeyValuePair <string, int> MostCommon()
 {
     return(ValCount.OrderByDescending(o => o.Value).First());
 }