dictionary csharp iterate
Code Example - dictionary csharp iterate
foreach(KeyValuePair<string, string> entry in myDictionary)
{
// do something with entry.Value or entry.Key
}
how to do a foreach loop in csharp for dictionary
foreach (KeyValuePair<string, int> kvp in myDictionary)
{
print(kvp)
}
foreach dictionary csharp
foreach(KeyValuePair<string, string> entry in myDictionary)
{
// do something with entry.Value or entry.Key
}
csharp foreach on a dictionary
foreach(var item in myDictionary)
{
foo(item.Key);
bar(item.Value);
}