title: Iterate over Dictionary in C#
body: <p>I am creating a Dictionary and add string as key and another Dictionary as values which refer to a particular user.
  I am not able to iterate over the key (string in dictionary), and if that matches my requirement, i need to get the values in that dictionary.</p>
  
  <p>Something like :</p>
  
  <pre><code>Dictionary&lt;string,Dictionary&lt;string,string&gt;&gt; myDictionary = new Dictionary&lt;string,Dictionary&lt;string,string&gt;&gt; 
  mydictionary.Add(string,Dictionary&lt;string,string&gt;)
  </code></pre>
  
  <p>here is what i want to do :</p>
  
  <pre><code>foreach(string s in Dictionary&lt;string,Dictionary&gt;) 
  {    if(s.contains("Foo"))    {
          return the dictionary which is mapped to this key.
  }
  }
  </code></pre>