for example
foreach(var toCheck in query)
{
foreach (var againstItem in totalWeight)
{
count1++
if (getIEnumerable(toCheck,againstItem).Any(
x => { count2++; return (x == againstItem.Key); }))
{
blacklist.Add(toCheck);
break;
}
count3++;
}
}
the results are:
count1 = 166184
count2 = 30620
count3 = 165848
I am expecting count2 would be much bigger compared to count1 and count3
If there are no items to enumerate, the loop will not run and the
count2will not be increased.Is that possible in your case?