GTTools.com

06 Jan

How to iterate a C# dictionary

The following snippet shows an easy way to iterate a C# dictionary:

Dictionary<int, string> dictionary = new Dictionary<int, string>();

dictionary.Add(1, "Cat");
dictionary.Add(2, [...]

© 2010 GTTools.com | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo