title: Converting F# Quotations into LINQ Expressions
body: <p>I can convert a quotation of type <code>Expr&lt;'a -&gt; 'b&gt;</code> to a Linq expression via the following snippet:</p>
  
  <pre><code>/// Converts a F# Expression to a LINQ Lambda
  let toLambda (exp:Expr) =
      let linq = exp.ToLinqExpression() :?&gt; MethodCallExpression
      linq.Arguments.[0] :?&gt; LambdaExpression
  
  /// Converts a Lambda quotation into a Linq Lamba Expression with 1 parameter
  let ToLinq (exp : Expr&lt;'a -&gt; 'b&gt;) =
      let lambda = toLambda exp
      Expression.Lambda&lt;Func&lt;'a, 'b&gt;&gt;(lambda.Body, lambda.Parameters)
  </code></pre>
  
  <p>Now I want to convert a quotation of type <code>Expr&lt;'a * 'b -&gt; 'c&gt;</code> or maybe even <code>Expr&lt;'a -&gt; 'b -&gt; 'c&gt;</code> to a Linq Lambda Expression of type <code>Expression&lt;Func&lt;'a,'b'c&gt;&gt;</code>.</p>
  
  <p>How can I do this?</p>
  
  <p>Regards,
    forki</p>