.net - What exactly is the point of Expression Trees? -
OK, I do not get this.
What I have read, can be on the subject without knowing all this:
- Why use the Expression Tree?
- What is a real-world example of when and how should I use them?
- What are the overall benefits of using them? Expression Tree API originally written to enable the creation of custom LINQ providers.
I went. Basically, if you use objects to LINQ, then you do not deal with Expression trees. But if you work with LINQ from SQL, the LINQ provider works with Expression Trees.
The .NET 4.0 expression tree was expanded into API and has been heavily used by DLRR. Therefore, if you say that add a new dynamic language to the NAT, then you will need it.
As often happens, people find more ways to use expression trees. Sometimes you can use ET to get more information about things rather than reflection. In .NET 4, you can also use them to generate dynamic methods. But remember that these are more like advanced tricks rather than the recommended circumstances.
Here are some links on which you can see:
Comments
Post a Comment