Answers for "loop in dictionarry in c#"

C#
16

iterate through dictionary c#

foreach(var item in myDictionary)
{
  foo(item.Key);
  bar(item.Value);
}
Posted by: Guest on December-19-2019
5

.net loop through dictionary

foreach (KeyValuePair item in myDictionary)
{
    MessageBox.Show(item.Key + "   " + item.Value);
}
Posted by: Guest on May-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language