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]
  1. Install Expressif.
  2. Evaluate an expression.
  3. Evaluate a predication.
  4. Build an expression with C#.
  5. Build a predication with C#.
  6. Serialize a builder.

Table of contents


This site uses Just the Docs, a documentation theme for Jekyll.