title: Enumerable.Contains With MethodInfo
body: <p>Having trouble with this. Basically I'm using System.Linq.Expressions to build up a dynamic 
  Linq &amp; EF Expression.</p>
  
  <p>I want to pass in IEnumerable and build up a contains off that. I cant get the method info off of IEnumerable. </p>
  
  <p>this works because there isn't an overload</p>
  
  <pre><code>MethodInfo contains = typeof(List&lt;int&gt;).GetMethod("Contains");
  </code></pre>
  
  <p>I can't get the method info off of IEnumerable though.</p>
  
  <p>Here is the complete code. (first line is what I'm trying to figure out using Ienumerable)</p>
  
  <pre><code>MethodInfo contains = typeof(List&lt;int&gt;).GetMethod("Contains");
  var thisListExpressionParameter = Expression.Constant(lst, typeof(IEnumerable&lt;Z&gt;));
  var ContainsMethodCall = Expression.Call(thisListExpressionParameter, ContainsOffOfIEnumerable, RightHandSide.thisMemberExpression);
  
   return Expression.Lambda&lt;Func&lt;T, bool&gt;&gt;(ContainsMethodCall, RightHandSide.thisParameterExpression);
  </code></pre>