title: How to find the keys in dictionary object which matches partially?
body: <p>I am  trying to  grab all the items in the dictionary based on given string which matches partially or fully.</p>
  
  <p>I tried the following code  but doesn't seems to work </p>
  
  <pre><code>a.Where(d =&gt; d.Value.Contains(text)).ToDictionary(d =&gt; d.Key, d =&gt; d.Value);
  </code></pre>
  
  <p>Can you please tell me how to achieve this ?</p>