I have this code:
var items = from pair in dic orderby pair.Value descending select pair;
var top5 = items.Take(5);
I take five items from a Dictionary string,int in descending order
var keys = String.Join(", ", top5.Select(x => String.Format("{0}", x.Key)).ToArray().Except(res.Keys));
Here I show the 5 items but I except some words placed in another Dictionary string, string. If I except one word in the top5 I will display less than 5 elements.
How can I display always 5 elements although I except some words?