✅ Looping through collections with key value pairs
Hello guys, consider the following code:
I'm a bit confused about how grouping is used in the loops. The thing is I first tried to compare it with how we loop for a dictionary but in a dictionary, we would use
I'm a bit confused about how grouping is used in the loops. The thing is I first tried to compare it with how we loop for a dictionary but in a dictionary, we would use
grouping.Value in the inner loop but here, we used grouping in both loops. What's happening here please, how does grouping know which one is an int or which one is the collection.