A simple library for creating an expression tree.
$ dotnet add package ExpressionTreeSimple class to represent an expression tree.
If you have any issues or feedback, please file an issue here in Github. We'd love to have you help by contributing code for new features, optimization to the existing codebase, ideas for future releases, or fixes!
This project was built to provide a simple class to represent an expression tree (term-operator-term) with support for nested expressions, literals, arrays, and lists.
Refer to the custom serializers in the Test.NewtonsoftJson and Test.SystemTextJson projects.
Copy APIusing ExpressionTree;
Expr e = new Expr(5, OperatorEnum.GreaterThan, 1);
Expr e = new Expr(
new Expr(5, OperatorEnum.GreaterThan, 1),
OperatorEnum.And,
new Expr("Name", OperatorEnum.In, new List<string> { "Smith", "Anderson", "Jones" })
);
Expr eCopy = e.Copy()
Refer to CHANGELOG.md for version history.