title: Navigate through dictionary <string, int> c#
body: <p>What is the better way to Navigate through a dictionary  ? I used to use the code below when i had IDictionary:</p>
  
  <p>Assume that I have IDictionary named <code>freq</code></p>
  
  <pre><code>IEnumerator enums = freq.GetEnumerator();
  while (enums.MoveNext())
  {
      string word = (string)enums.Key;
      int val = (int)enums.Value;
      .......... and so on
  
  }
  </code></pre>
  
  <p>but now, I want to do the same thing using dictionary </p>