Logo

Programming-Idioms

History of Idiom 13 > diff from v35 to v36

Edit summary for version 36 by :
New Csharp implementation by user [javasucks]

Version 35

2016-02-16, 21:53:58

Version 36

2016-02-17, 10:57:53

Idiom #13 Iterate over map keys and values

Print each key k with its value x from an associative array mymap

Idiom #13 Iterate over map keys and values

Print each key k with its value x from an associative array mymap

Code
foreach(var entry in map)
{
    Console.WriteLine("Key=" + entry.Key + ", Value=" + entry.Value);
}