Posted By

tclancy on 09/09/10


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

Tyster
cygnusfear
Priestd09
danfinrud55


Loop Over C# Dictionary


 / Published in: C#
 

URL: http://stackoverflow.com/questions/141088/what-is-the-best-way-to-iterate-over-a-dictionary-in-c

  1. foreach( KeyValuePair<string, string> kvp in openWith )
  2. {
  3. Console.WriteLine("Key = {0}, Value = {1}",
  4. kvp.Key, kvp.Value);
  5. }

Report this snippet  

You need to login to post a comment.