title: Parse string into a LINQ query
body: <p>What method would be considered best practice for parsing a LINQ string into a query?</p>
  
  <p>Or in other words, what approach makes the most sense to convert:</p>
  
  <pre><code> string query = @"from element in source
                    where element.Property = ""param""
                    select element";
  </code></pre>
  
  <p>into</p>
  
  <pre><code> IEnumerable&lt;Element&gt; = from element in source 
                          where element.Property = "param"
                          select element;
  </code></pre>
  
  <p>assuming that <code>source</code> refers to an <code>IEnumerable&lt;Element&gt;</code> or <code>IQueryable&lt;Element&gt;</code> in the local scope.</p>