How do I enumerate a dictionary?
Suppose I use foreach() for dictionay enumeration. I can\'t update a key/value pair inside foreach(). So I
foreach()
Foreach. There are three ways: You can enumerate over the Keys property, over the Values property or over the dictionary itself which is an enumerator of KeyValuePair.
Keys
Values
KeyValuePair