I’m using the following code to get each value of a dictionary and its index
foreach (var termIndex in freq.Select(entry => GetTermIndex(entry.Key)))
{
var wordFreq = entry.Value;
........
}
Why does suddenly an error
the name ‘entry’ doesn’t exist in the current context
appear?? Could anyone help please ?
Thank you a lot
To iterate over the dictionary elements all you have to do is: