Alex Rivera | Logout

What exactly is the point of Expression Trees?

Asked 2010-07-28T20:33:42.417
9

Ok, I just don't get it.

I've read about as much as I can on the subject without knowing what it's all about:

  • Why use Expression Trees?
  • What's a real-world example of when and how I'd use them?
  • What overall benefit(s) are there in using them?
Edit
Report

1 Answer

2

They are indeed very useful.

Every lambda expression can either become a method or an expression tree.

Methods are obviously executed native in the framework.

Expression trees can be translated to other representation. For example LINQ for SQL converts query expressions into SQL syntax and execute them remotely on the server.

answered 2010-07-28T20:35:53.170

Your Answer