Brief
Expression and Expression<> are basically classes that can represent the CSharp code as Data. Really? Yeah really. Unlike Func<> or Action<> Expressions are non-compiled Data about the code. Most of LINQ Providers has been built using Expressions. Let’s get started with a sample Expression and try to understand it.
The Expression Tree can be visualized as with it’s major properties:
![Expression statement](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/vendettamit/beginners-guide-for-expression-trees-in-C-Sharp-understanding-e/Images/Expression%20statement.jpg)
![Expression](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/vendettamit/beginners-guide-for-expression-trees-in-C-Sharp-understanding-e/Images/Expression.jpg)
Refer this link for more details.
StackOverflow Link
Expression Vs Delegates
MSDN
Expression and Expression<> are basically classes that can represent the CSharp code as Data. Really? Yeah really. Unlike Func<> or Action<> Expressions are non-compiled Data about the code. Most of LINQ Providers has been built using Expressions. Let’s get started with a sample Expression and try to understand it.
The Expression Tree can be visualized as with it’s major properties:
![Expression statement](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/vendettamit/beginners-guide-for-expression-trees-in-C-Sharp-understanding-e/Images/Expression%20statement.jpg)
![Expression](https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFile/vendettamit/beginners-guide-for-expression-trees-in-C-Sharp-understanding-e/Images/Expression.jpg)
Refer this link for more details.
StackOverflow Link
Expression Vs Delegates
MSDN
Comments
Post a Comment