Using the API

You can use the Expression class which contains static factory methods that create expression tree nodes of specific types. The following example manually builds the expression tree for the lambda expression val => val < 10.