Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I view an expression tree with LINQPad?

Maybe I'm missing something obvious, but I how can I view the expression tree for this query:

from word in "The quick brown fox jumps over the lazy dog".Split()
orderby word.Length
select word

using LINQPad?

like image 546
GuyBehindtheGuy Avatar asked Feb 03 '23 08:02

GuyBehindtheGuy


1 Answers

You can view the objects that make up the expression tree as follows:

(from word in "The quick brown fox jumps over the lazy dog".Split().AsQueryable()
orderby word.Length
select word).Expression
like image 173
Joe Albahari Avatar answered Mar 22 '23 23:03

Joe Albahari