title: Calling a Generic Method using Lambda Expressions (and a Type only known at runtime)
body: <p>You can use <a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.lambdaexpression.aspx" rel="noreferrer">Lambda Expression Objects</a> to represent a lambda as an expression.</p>
  
  <p>How do you create a <a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.lambdaexpression.aspx" rel="noreferrer">Lambda Expression Object</a> representing a generic method call, if  you only know the type -that you use for the generic method signature- at runtime?</p>
  
  <p>For example:</p>
  
  <p>I want to create a <a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.lambdaexpression.aspx" rel="noreferrer">Lambda Expression Objects</a> to call:
  <code>public static TSource Last&lt;TSource&gt;( this IEnumerable&lt;TSource&gt; source )</code></p>
  
  <p>But I only know what <code>TSource</code> is at runtime.</p>