.NET SDK
The Expressif .NET SDK brings expression and predication evaluation into a .NET application.
Use the language when rules should remain readable as text. Use the builders when C# code should select and compose the operations. Both approaches produce executable objects that accept a value and return a result.
flowchart LR
A[Expressif source] --> C[Expression or predication]
B[C# builder] --> C
C --> D[Evaluate a value]
D --> E[Result]
Choose an API
| API | Use it to |
|---|---|
Expression | Parse an open expression and evaluate it with an incoming value. |
Predication | Parse a predicate or predicate combination and evaluate it as a Boolean rule. |
ExpressionBuilder | Compose a function pipeline with C# types. |
PredicationBuilder | Compose predicates, negation, and Boolean operators with C# types. |
Context | Supply variables and a current object used by an expression or builder. |
A first evaluation
using Expressif;
var expression = Expression.Create("trim | upper");
var result = expression.Evaluate(" Alice ");
The value flows through the same pipeline described in the Expressif language:
flowchart LR
A[" Alice "] --> B[trim]
B --> C[upper]
C --> D[ALICE]
What to read next
- Install Expressif.
- Evaluate an expression.
- Evaluate a predication.
- Build an expression with C#.
- Build a predication with C#.
- Serialize a builder.