Advertisement
sashomaga

Itereate and change Dictionary key and value

Jan 31st, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1.     Dictionary<string, int> precedence = new Dictionary<string, int>();
  2.         List<string> keys = new List<string>(precedence.Keys);
  3.         foreach (var key in keys)
  4.         {
  5.             //Do something with dict values and keys
  6.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement