Expressions
Hyperbee.Expressions provides custom expression types that extend the standard .NET expression tree model with language constructs not natively available in System.Linq.Expressions.
All types reduce to standard expressions via Expression.Reduce(), making them compatible with any expression visitor or compiler that accepts LambdaExpression.
Factory Methods
All factory methods are static members of ExpressionExtensions. Import them with:
using static Hyperbee.Expressions.ExpressionExtensions;
Expression Types
| Expression | Factory | Description |
|---|---|---|
| Async Block | BlockAsync(...) | Async code block with state machine |
| Enumerable Block | BlockEnumerable(...) | Yield-returning enumerable block |
| Await | Await(...) | Await a task or awaitable |
| Yield | YieldReturn(...) / YieldBreak() | Yield a value or end enumeration |
| For | For(...) | for loop |
| ForEach | ForEach(...) | foreach loop |
| While | While(...) | while loop |
| Using | Using(...) | Scoped resource disposal |
| String Format | StringFormat(...) | Formatted string construction |
| Debug | Debug(...) | Debug callback |
| Inject | Inject(...) | Service resolution via IServiceProvider |
| Configuration Value | ConfigurationValue(...) | IConfiguration value access |