Get string representation of a Linq To Objects Query

Viewed 859

In a web application, I have linq To Object queries to make data extraction/consolidation. To allow easier debugging, I would like to show directly in the generated HTML the linq query structure; something like

Bananas
  ->Where color='blue'
  ->Where size>'20cm'
  ->Take 25

Indeed, a representation of the expression tree.

Is it possible? How?

3 Answers
Related