I've seen a few different ways to iterate over a dictionary in C#.
(我已经看到了几种不同的方法来迭代C#中的字典。)
(有没有标准的方法?)
foreach(KeyValuePair<string, string> entry in myDictionary) { // do something with entry.Value or entry.Key }
2.1m questions
2.1m answers
60 comments
57.0k users