C# Expression trees - in-depth resources?

mrjminer

Platinum Member
Dec 2, 2005
2,739
16
76
Looking for something for intermediate-advanced usage for a toy project I'm going to start this weekend

I'm finding it pretty hard to find any examples beyond sites that have one-two rudimentary example of stuff like adding two numbers, which isn't very helpful. I've done some of varying complexity in the past, so I have some understanding and use of them already; it's just a pain to get into the swing of writing them. I'd rather read / study some examples for a couple of days so I'm not just constantly re-compiling and checking DebugView in VS for a couple of weeks while I get back in the habit of writing them.

So, are there any good, detailed resources for expression trees, or is it going to pretty much just be checking out examples on constructors for the various expression classes on MSDN for stuff I don't figure out right away while having the little debug view box popped up? Even a book with a couple of chapters would work if it went in-depth or had examples that were more than a few lines long.

Even better if there is a program to toy around with them rather than using the DebugView. I think getting into the swing of them will be easier if I can see the code that will be generated by the tree side by side or something.
 
Last edited: