languages | products | page_type | name | urlFragment | description | ||
---|---|---|---|---|---|---|---|
|
|
sample |
Build and interpret expression trees |
build-interpret-expression-trees |
A sample console application that shows how to build and interpret expression trees. |
This sample is created during the Expression trees article for learning C# features. Please see that article for detailed steps on the code for this sample.
This sample demonstrates creating expression trees, parsing expression trees, and understanding the relationship between expression trees and the code you write every day in C#.
To build and run the sample, enter the following command:
dotnet run
dotnet run
builds the sample and runs the output assembly.