Loop Over C# Dictionary


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. foreach( KeyValuePair<string, string> kvp in openWith )
  2. {
  3. Console.WriteLine("Key = {0}, Value = {1}",
  4. kvp.Key, kvp.Value);
  5. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.