Hyperbee.Expressions 1.1.3-develop.250319162912

This is a prerelease version of Hyperbee.Expressions.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Hyperbee.Expressions --version 1.1.3-develop.250319162912
                    
NuGet\Install-Package Hyperbee.Expressions -Version 1.1.3-develop.250319162912
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Hyperbee.Expressions" Version="1.1.3-develop.250319162912" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hyperbee.Expressions" Version="1.1.3-develop.250319162912" />
                    
Directory.Packages.props
<PackageReference Include="Hyperbee.Expressions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hyperbee.Expressions --version 1.1.3-develop.250319162912
                    
#r "nuget: Hyperbee.Expressions, 1.1.3-develop.250319162912"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Hyperbee.Expressions@1.1.3-develop.250319162912
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hyperbee.Expressions&version=1.1.3-develop.250319162912&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Hyperbee.Expressions&version=1.1.3-develop.250319162912&prerelease
                    
Install as a Cake Tool

Welcome to Hyperbee Expressions Interpreter

Hyperbee.Expressions.Interpreter is a C# library that extends the capabilities of expression trees to run without compilation.

Features

This adds the extension method Intrepet() to the LambdaExpression class to allow for the interpretation of expression trees at runtime.

This works the same way that the built in lambda.Compile() does, but without the need for compilation.

Additionally it's similar to lambda.Compile( preferInterpretation: true ) but allows for async code execution and other extension expressions.

Examples

    var lambda = Expression.Lambda<Func<int>>(Expression.Constant(1));

    var interpetedLambda = lambda.Interpret();

    var result = interpetedLambda();

Note: Every call to the interpreted lambda will walk the expression tree to determine the correct result. In cases where the lambda is not reused this may perform better than compiling and running, but if the lambda is reused it may be better compile it once. Always profile to determine the best approach.

Credits

Special thanks to:

Contributing

We welcome contributions! Please see our Contributing Guide for more details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Hyperbee.Expressions:

Package Downloads
Hyperbee.XS

XS: A Lightweight, Extensible Scripting Language for Expression Trees.

Hyperbee.XS.Extensions

Expression Script [XS] language extensions.

Hyperbee.Expressions.Lab

Sample Extentions for .NET Expression Trees.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 603 5/9/2025
1.2.0-develop.250417163546 188 4/17/2025
1.1.5 442 4/2/2025
1.1.5-develop.250402163927 160 4/2/2025
1.1.5-develop.250402142908 138 4/2/2025
1.1.5-develop.250402133114 142 4/2/2025
1.1.5-develop.250402131116 149 4/2/2025
1.1.5-develop.250401194515 135 4/1/2025
1.1.4 232 3/31/2025
1.1.4-develop.250331172856 154 3/31/2025
1.1.4-develop.250328154856 138 3/28/2025
1.1.3 258 3/19/2025
1.1.3-develop.250319162912 143 3/19/2025
1.1.3-develop.250317193155 146 3/17/2025
1.1.3-develop.250317174611 153 3/17/2025
1.1.3-develop.250313195935 150 3/13/2025
1.1.3-develop.250313192012 133 3/13/2025
1.1.2 670 1/28/2025
1.1.2-develop.250108191742 197 1/8/2025
1.1.1 285 1/6/2025
1.1.0 236 12/23/2024
1.1.0-develop.241220155532 84 12/20/2024
1.0.1 143 12/10/2024
1.0.0 153 12/5/2024
1.0.0-develop.241205135900 103 12/5/2024