title: how to apply where clause in generic type list in c#
body: <p>i have a generic method like this</p>
  
  <pre><code> public IList&lt;T&gt; Get(KendoGridFilterSort.FilterContainer filter)
      {
          List&lt;T&gt; list = null;
          IQueryable&lt;T&gt; dbQuery = _entities.Set&lt;T&gt;();
          list = dbQuery
          .ToList&lt;T&gt;();
          return list;
  
      }
  </code></pre>
  
  <p>when in inititate the class of this method with specific object i got the full list of records.
  but i want to pass some filter thorough  parameters in this method to filter records accordingly . for this i have  class name KendoGridFilterSort.FilterContainer that contain all the filter with field name, operator and values
  i want to use that filters with this generic method , my problem is i cannot use 
  this statement for example</p>
  
  <pre><code>persons.Where(p =&gt; p.Name == name &amp;&amp; p.Surname == surname).ToList();
  </code></pre>
  
  <p>so is there any possibility that i could apply my filter on this generic list ?</p>