title: Dictionary of dictionaries
body: <p>I have a resource file I grab like this:</p>
  
  <pre><code>var rs = &lt;somewhere&gt;.FAQ.ResourceManager
       .GetResourceSet(CultureInfo.CurrentUICulture, true, true);
  </code></pre>
  
  <p>and I want to parse it into a dictionary of dictionaries but I can't figure out quite how.  this is what I'm trying:</p>
  
  <pre><code>var ret = rs.OfType&lt;DictionaryEntry&gt;()
    .Where(x =&gt; x.Key.ToString().StartsWith("Title"))
    .ToDictionary&lt;string, Dictionary&lt;String, string&gt;&gt;(
      k =&gt; k.Value.ToString(),
      v =&gt; rs.OfType&lt;DictionaryEntry&gt;()
        .Where(x =&gt; x.Key.ToString().StartsWith(v.Value.ToString().Replace("Title", "")))
        .ToDictionary&lt;string, string&gt;(
          key =&gt; key.Value,
          val =&gt; val.Value
        )
    );
  </code></pre>
  
  <p>so if I understand this correctly, <code>k</code> should refer to a DictionaryEntry and thus I should be able to dereference it like <code>k.Value</code> and to manufacture my dictionary in each of the outer dictionary's entries I do another query against the resource file, thus <code>key</code> and <code>val</code> should also be of type DictionaryEntry.</p>
  
  <p>In referencing <code>val.Value</code> I get the error "Cannot choose method from method group.  Did you intend to invoke the method?" though that should be a property, not a method.</p>
  
  <p>help?</p>
  
  <p>p.s. as an explanation, my resource file looks sort of like this:</p>
  
  <pre><code>TitleUser:  User Questions
  TitleCust:  Customer Questions 
  User1: Why does something happen? Because… 
  User2: How do I do this? Start by…
  Cust1: Where can I find…?  It is located at… 
  Cust2: Is there any…? yes, look for it…
  </code></pre>
  
  <p>which means I first get a list of sections (by looking for all keys that start with "Title") and for each I look for a list of questions</p>