title: Dynamic LINQ function using dictionary as a Parameter to filter method
body: <p>I am new to the reflection area. I am have to filter a list of entity that has a dictionary by using it's key and value like below</p>
  
  <pre><code>public class Person
  {
      public string Name { get; set; }
      public Dictionary&lt;string,string&gt; SecQuestions { get; set; }
  }
  </code></pre>
  
  <p>below extension is available in a dll and could not be modified</p>
  
  <pre><code>public static class extensions
  {
      public static List&lt;Person&gt; FilterMe(this List&lt;Person&gt; Persons, Func&lt;Person,bool&gt; predicate)
      {
          // Logic to filter the persion list
          return Persons;
      }
  }
  </code></pre>
  
  <p>hence I have to call the above method by using below code</p>
  
  <pre><code>persons.FilterMe(xy =&gt; xy.SecQuestions.Any(x =&gt; x.Key == "PlaceOfBirth" &amp;&amp; x.Value == "Madurai"));
  </code></pre>
  
  <p>I need to know how to create</p>
  
  <pre><code>xy =&gt; xy.SecQuestions
      .Any(x =&gt; x.Key == "PlaceOfBirth" &amp;&amp; x.Value == "Madurai")
  </code></pre>
  
  <p>dynamically using expression builders to pass as the parameter to the extension method. Thanks</p>