Adletec.Sonic 1.5.0

dotnet add package Adletec.Sonic --version 1.5.0                
NuGet\Install-Package Adletec.Sonic -Version 1.5.0                
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="Adletec.Sonic" Version="1.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Adletec.Sonic --version 1.5.0                
#r "nuget: Adletec.Sonic, 1.5.0"                
#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.
// Install Adletec.Sonic as a Cake Addin
#addin nuget:?package=Adletec.Sonic&version=1.5.0

// Install Adletec.Sonic as a Cake Tool
#tool nuget:?package=Adletec.Sonic&version=1.5.0                

<img alt="Our beautiful sonic logo" src="https://raw.githubusercontent.com/adletec/sonic/main/.resources/adletec_sonic_logo_64x64.png" width="24"/> sonic | rapid expression evaluation for .NET

Build status Build status codecov Nuget FOSSA Status

sonic is a rapid evaluation engine for mathematical expressions. It can parse and evaluate strings containing mathematical expressions.

sonic is also the expression evaluator we use in our commercial products. It is a core component of our real-time simulation tools for virtual vehicle and ADAS prototyping and is continuously stress tested in a demanding environment. Its development and maintenance is funded by our product sales.

Guiding Principles

The guiding principles for sonic are (in that order):

  1. Performance: sonic is aiming to be the fastest expression evaluator for .NET. It is optimized for both, multi pass evaluation of the same expression and single pass evaluation of many different expressions.
  2. Usability: sonic is designed to be easy to use. It comes with a sane default configuration, an understandable documentation and a simple API. The most common use-cases should be fast out-of-the-box.
  3. Maintainability: sonic is designed to be easy to maintain. It is written in a clean and readable code style and comes with a comprehensive test and benchmarking suite. The NuGet package introduces no transient dependencies.

Quick Start

sonic can parse and evaluate strings containing mathematical expressions. These expressions may rely on variables, which can be defined at runtime.

Consider this example:

var expression = "var1*var2";

var variables = new Dictionary<string, double>();
variables.Add("var1", 2.5);
variables.Add("var2", 3.4);

var engine = Evaluator.CreateWithDefaults();
double result = engine.Evaluate(expression, variables); // 8.5

The Evaluator comes with out-of-the-box support for many arithmetic (+, -, *, /, ...), trigonometric (sin, cos, atan, ...) statistic (avg, max, min, median, ...), and simple boolean logic (if, ifless, ifequal, ...) functions.

You can add your own domain-specific functions. This example adds a conversion function from length in feet (ft) to meter (m):

var engine = Evaluator.Create()
    .AddFunction("ft2m", (Func<double, double>)((a) => a * 0.3048))
    .Build();
double result = engine.Evaluate("ft2m(30)"); // 9.144

You can find more examples below.

sonic can execute formulas in two modes: dynamic compilation mode and interpreted mode. If dynamic compilation mode is used, sonic will create a dynamic method at runtime and will generate the MSIL opcodes necessary for the native execution of the evaluation. If a formula is re-evaluated with other variables, sonic will take the dynamically generated method from its cache (if enabled, which it is by default). Dynamic compilation mode is a lot faster when evaluating an expression, but has a higher overhead when building the evaluator.

As a rule of thumb, you should use dynamic compilation mode if you are evaluating the same expressions multiple times with different variables, and interpreted mode if you are evaluating many different expressions only once.

Additionally, for specific use-cases (e.g. Unity with IL2CPP) dynamic code generation can be limited. In those cases, you can use the interpreted mode as a fallback.

Migration from Jace.NET

sonic originally started as a fork of Jace.NET by Pieter De Rycke, which is no longer actively maintained. It is not a drop-in replacement for Jace.NET, but you should be able to switch to sonic with little effort.

sonic is considerably faster than Jace.NET (see benchmarks below). It contains numerous bugfixes and a lot of maintenance work over the latest Jace.NET release (1.0.0). Many of them were originally suggested and developed by the community for Jace.NET, but never merged due to the dormant state of the project. See the changelog for details and a complete list.

Installation

sonic is available via nuget:

dotnet add package Adletec.Sonic --version 1.4.1

Usage

Evaluating an Expression

Directly Evaluate an Expression

The easiest way to evaluate an expression is to use the Evaluate()-method of the Evaluator:

var expression = "var1*var2";

Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("var1", 2.5);
variables.Add("var2", 3.4);

var engine = Evaluator.CreateWithDefaults();
double result = engine.Evaluate(expression, variables);
Create a Delegate for an Expression

sonic can also create a delegate (Func) from your expression which will take the variable dictionary as argument:

var expression = "var1+2/(3*otherVariable)";

var engine = Evaluator.CreateWithDefaults();
Func<Dictionary<string, double>, double> evaluate = engine.CreateDelegate(expression);

Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("var1", 2);
variables.Add("otherVariable", 4.2);
	
double result = evaluate(variables);

If you intend to evaluate the same expression repeatedly with different variables, you should use this method. It will avoid the overhead of retrieving the delegate from the cache, based on the expression string. On the other hand, there is no performance benefit in using this method if you are only evaluating the expression once.

Handling Spaces and Special Characters

sonic expects expressions to contain alpha-numeric characters and mathematical operators only.

However, it's possible to use single quotes (') to wrap any symbol or function name, which will allow you to use arbitrary characters, including spaces, emojis, and even mathematical operators as part of your token name.

[!NOTE] There is no escaping mechanism for single quotes, i.e. you can't use single quotes in your token names. Apart from that, everything inside the single quotes will be treated as a black box, so every valid string is a valid token name.

Be aware that the quotation is not part of the token name, so sin('x') and sin(x) are equivalent. This also means that it's only necessary to use single quotes in the expression, not in the variable dictionary.

var expression = "sin('x') + 'my variable'";
Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("x", 0);
variables.Add("my variable", 3.4);
double result = engine.Evaluate(expression, variables); // 3.4

[!CAUTION] You might want to use this feature to allow the usage of arbitrary token names from external sources in your application, e.g. from user input. Be aware that sonic won't sanitize the input or token names in any way. This means that defining an expression with user defined token names (e.g. var expression = $"1234 + '{tokenFromUserInput}'";) will allow the user to inject arbitrary code into your expression.

In other words, don't use user input as token names, if you don't want them to manipulate your expression.

Using Mathematical Functions

You can also use mathematical functions in your expressions:

var expression = "logn(var1,var2)+4";

Dictionary<string, double> variables = new Dictionary<string, double>();
variables.Add("var1", 2.5);
variables.Add("var2", 3.4);

var engine = Evaluator.CreateWithDefaults();
double result = engine.Evaluate(expression, variables);
Built-in Functions

sonic supports most common functions out-of-the-box:

Function Signature Parameters
Sine sin(a) a: angle in radians
Cosine cos(a) a: angle in radians
Secant sec(a) a: angle in radians
Cosecant csc(a) a: angle in radians
Tangent tan(a) a: angle in radians
Cotangent cot(a) a: angle in radians
Arcsine asin(a) a: angle in radians
Arccosine acos(a) a: angle in radians
Arctangent atan(a) a: angle in radians
Arccotangent acot(a) a: angle in radians
Natural logarithm loge(a) a: number whose logarithm is to be found
Common logarithm log10(a) a: number whose logarithm is to be found
Logarithm logn(a, b) a: number whose logarithm is to be found<br/>b: base of the logarithm
Square root sqrt(a) a: number whose square root is to be found
Absolute abs(a) a: number whose absolute value is to be found
If if(a,b,c) a: boolean expression, e.g. x > 2<br/>b: result if true(!= 0)<br/>c: result if false (== 0)
If less ifless(a,b,c,d) a: first value<br/>b: second value<br/>c: result if a < b<br/>d: result if a >= b
If more ifmore(a,b,c,d) a: first value<br/>b: second value<br/>c: result if a > b<br/>d: result if a <= b
If equal ifequal(a,b,c,d) a: first value<br/>b: second value<br/>c: result if a == b<br/>d: result if a != b
Ceiling ceiling(a) a: number to be rounded towards +∞
Floor floor(a) a: number to be rounded towards -∞
Truncate truncate(a) a: number to be truncated (to integral part)
Round round(a) a: number to be rounded (to even)
Maximum max(a,b,...) a,b,...: series of numbers to find the maximum of
Minimum min(a,b,...) a,b,...: series of numbers to find the minimum of
Average avg(a,b,...) a,b,...: series of numbers to find the average of
Median median(a,b,...) a,b,...: series of numbers to find the median of
Sum median(a,b,...) a,b,...: series of numbers to build the sum of
Random random() no parameters, returns random number in [0..1]

The function names are reserved keywords and cannot be overwritten. If you need to override a function, you can globally disable the built-in functions using the configuration (see below).

Custom Functions

You can define your own functions using the .AddFunction()-method while instantiating the evaluator.

var engine = Evaluator.Create()
    .AddFunction("ft2m", (Func<double, double>)((a) => a * 0.3048))
    .Build();
double result = engine.Evaluate("ft2m(30)"); // 9.144

The .AddFunction()-method provides overloads for functions with up to 16 parameters. If you want to process an arbitrary amount of parameters, you can use dynamic functions:

double MyCustomSumFormula(params double[] a)
{
    return a.Sum();
}

var engine = Evaluator.Create()
    .AddFunction("customSum", MyCustomSumFormula)
    .Build();
double result = engine.Evaluate("customSum(1,2,3,4,5,6)"); // 21.0

Custom function names are overridable, so you can re-register the same name with a different implementation.

Using Constants

sonic provides support for pre-compile constants. These constants are taken into account during the optimization phase of the compilation process. I.e., if your expression contains an operation like 2 * pi, this operation is already evaluated when you build a delegate and the result is cached.

Built-in Constants
Constant Name
π pi
e

The constant names are reserved keywords and cannot be overwritten. If you define a variable with the same name as a constant, the constant will take precedence.

If you need to override a constant, you can globally disable the built-in constants using the configuration (see below).

Custom Constants

You can define your own constants using the .AddConstant()-method while instantiating the evaluator.

var engine = Evaluator.Create()
    .AddConstant("g", 9.80665)
    .Build();
double result = engine.Evaluate("g*2"); // 19.6133

Custom constants will also be taken into account during the optimization phase of the compilation process.

Validation

By default, sonic will validate the given expression upon evaluation (Evaluate()-method) or delegate creation (CreateDelegate()-method). This means that sonic will check if the given expression is syntactically correct and contains no unknown functions.

If the expression contains a syntax error, sonic will throw a ParseException. If the expression contains an unknown variable, sonic will throw a VariableNotDefinedException.

Validate an Expression

If you want to validate an expression without evaluating it, you can use the Validate()-method of the Evaluator:

var engine = Evaluator.CreateWithDefaults();
try {
  engine.Validate("var1*var2");
} catch (ParseException e) {
  // handle exception
}

This will validate the syntax of the expression and throw a ParseException if the expression is invalid.

Validate Variables

If you also want to check variable completeness without evaluating the expression, you can use the Validate(string expression, IList<string> variables)-overload:

var engine = Evaluator.CreateWithDefaults();
try {
  engine.Validate("var1*var2", new List<string> { "var1", "var2" });
} catch (VariableNotDefinedException e) {
  // handle exception
} catch (ParseException e) {
  // handle exception
}

This will validate the completeness of the variables and the syntax of the expression and throw a VariableNotDefinedException if the expression contains an unknown variable or a ParseException if the expression is invalid.

[!NOTE] The decisive factor for variable completeness is not wether all variables referenced in the expression are defined, but wether all variables necessary to evaluate the expression are defined. The optimizer, if enabled (default), will pre-evaluate parts of the expression which do not depend on variables, including multiplications with 0 or 0-exponents.

Consider the example var1 + 0 * var2. If the optimizer is enabled, the expression will be pre-evaluated to var1 and the expression will be valid even if var2 is not defined. If the optimizer is disabled, the expression will be invalid if var2 is not defined.

The Validate()-method will always behave like the Evaluate()-method in terms of the optimizer. If the optimizer is enabled, the expression will be pre-evaluated and the variables necessary to evaluate the expression will be checked. If the optimizer is disabled, the expression will be checked without pre-evaluation.

However, the Validate()-method will not evaluate the expression, so it will be faster than the Evaluate()-method, if you don't need the result.

Parse Exception Types

The Validate()-method will throw a matching sub-type of ParseException if the given expression is invalid. Each exception contains a Message-property which contains a human-readable error message, and additional properties which contain more detailed information about the error.

This is especially useful if you want to assist your users in writing valid expressions. You can use the information contained in the exception to provide meaningful error messages or syntax highlighting.

The following exceptions are thrown by Validate():

Exception Type Description
InvalidTokenParseException Thrown if the expression contains an invalid or unexpected token (e.g. var1*var2 var3)
InvalidFloatingPointNumberParseException Thrown if the expression contains an invalid floating point number (e.g. var1*2.3.4)
MissingLeftParenthesisParseException Thrown if the expression contains a closing parenthesis without a matching opening parenthesis (e.g. var1*2))
MissingRightParenthesisParseException Thrown if the expression contains an opening parenthesis without a matching closing parenthesis (e.g. var1*(2+3)
UnknownFunctionParseException Thrown if the expression contains an unknown function (e.g. var1*unknownFunction(2+3))
InvalidArgumentCountParseException Thrown if the expression contains a function with an invalid number of arguments (e.g. var1*sin(2;3))
MissingOperandParseException Thrown if the expression contains an operator without operands (e.g. var1*)

You can find more details about the different exception types in the source code.

Disable Validation

If you don't want sonic to validate the expression, you can disable validation globally using the configuration (see below). This can slightly improve parsing performance. However, you should only do this if you are absolutely sure that the given expression is valid (e.g. by validating it using the Validate()-method before).

A common use-case for disabling validation is when you are validating the expressions on user input. In that case, you can avoid re-validating the expression upon evaluation.

In any case, validation is pretty fast. Don't expect a significant performance boost by disabling it or rewrite your code to avoid validation, unless every millisecond counts.

Guarded Mode

There are some cases in which sonic can get ambiguous inputs. If there is no sane way to continue, sonic will throw an Exception (see Validation).

Other ambiguous inputs are a little more subtle which makes them harder to find:

  • A constant name collides with a function name
  • A function name collides with a variable name
  • The given variables include a variable name which is also a constant name
  • A constant is defined multiple times with different values
  • A function is defined multiple times with different implementations

sonic doesn't automatically recognize those cases, since it's explicitly designed to have a sane default which doesn't require additional checks:

  • Functions are always followed by an opening parenthesis, so they can be distinguished from constants/variables
  • Constants always have precedence over variables
  • Of two different constant definitions, the latter wins
  • Of two different function definitions, the latter wins

However, all of those cases might be potential sources of error, so for some use-cases, it might not be the desired behavior to silently ignore the ambiguous input.

In that case, you can enable Guarded Mode by calling .EnableGuardedMode() when building your Evaluator instance:

var engine = Evaluator.Create()
    .EnableGuardedMode()
    .Build();

sonic will then actively check if it encounters any of the above cases and throw an ArgumentException if it does. These checks are pretty expensive, so Guarded Mode is disabled by default. It is recommended to only use Guarded Mode if performance is not of importance or at least less important than the additional checks.

Still, Guarded Mode can help you to find problems in your code which might otherwise be hard to track down. It can be beneficial to use it while developing an application (e.g. in a Debug configuration) and disable it in your production code (Release configuration).

Configuration

The Evaluator-builder also allows you to configure the evaluator. The following options are available:

Option Values (bold = default) Comment
UseCulture(CultureInfo cultureInfo) CultureInfo.CurrentCulture<br/>CultureInfo.* Determines the number format (e.g. decimal separator, thousands separator, etc.); defaults to your system default;
UseArgumentSeparator(char argumentSeparator) , or ; (depending on Culture) Can be used to define the argument separator used for functions (e.g. ";" instead of ","). If unset, defaults to , for Cultures with a . as decimal separator and to ; for Cultures with a , as decimal separator.
UseExecutionMode(ExecutionMode executionMode) ExecutionMode.Compiled<br/>ExecutionMode.Interpreted Compiled will dynamically compile the evaluation to MSIL which grants the best evaluation performance, but comes with the overhead of compilation. If you are using a platform where dynamic compilation is restricted, or don't want to re-evaluate the same expressions, you should use Interpreted.
EnableCache() / DisableCache() enabled Can be used to disable the formula cache if set to false. The formula cache keeps a copy of the optimized AST for every given formula string, so it can be re-used. This makes subsequent evaluations of the same formula significantly faster. If you don't intend to re-evaluate the same expressions, you can disable the cache. This will reduce memory consumption and improve initial evaluation performance.
EnableOptimizer() / DisableOptimizer() enabled Can be used to disable the optimizer if set to false. The optimizer will pre-evaluate parts of the equation which do not depend on variables, including multiplications with 0 or 0 exponents. You can disable the optimizer if you know for a fact that the given expressions won't contain foldable constants or if you don't intend to re-evaluate the same expressions.
EnableCaseSensitivity() / DisableCaseSensitivity() enabled Determines whether the provided variable names will be evaluated case-sensitive (enabled) or case-insensitive (disabled). If you don't absolutely need case-insensitivity, you should keep this option set to case-sensitive since this has a notable performance impact.
EnableDefaultFunctions() / DisableDefaultFunctions() enabled Can be used to disable the built-in functions.
EnableDefaultConstants() / DisableDefaultConstants() enabled Can be used to disable the built-in constants.
EnableGuardedMode() / DisableGuardedMode() disabled Enables guarded mode. This means that the engine will throw exceptions for non-fatal errors, i.e. if it receives ambiguous input for which a sane default exists, but which is possibly not what the user intended. You can use this if you want to pin down hard to find bugs in your expressions. Since it comes with a severe performance impact, it is recommended to keep guarded mode disabled in production. Alas, if you prioritize validation over performance, you might decide otherwise.
EnableValidation() / DisableValidation() enabled Can be used to disable expression validation. This means that the engine won't check the input upon evaluation. In case of malformed input, this will lead to unexpected (i.e. wrong) results or throw little helpful runtime exceptions. But if the expressions have been validated before (e.g. using the "Validate()"-method of the Evaluator), this will improve parsing performance without sacrificing stability.
UseCacheMaximumSize(int cacheMaximumSize) 500<br/> The number of expressions to keep in the cache.
UseCacheReductionSize(int cacheReductionSize) 50 The number of expressions to drop from the cache once it reaches its maximum size (FIFO).

All options will be applied to the evaluator and all delegates created from it. The configuration is immutable. I.e., if you want to change the configuration of an evaluator, you have to create a new one.

Performance

Benchmark

sonic is primed to deliver great performance out-of-the-box. It comes with a comprehensive benchmarking suite which is easy to run and understand.

You can use the benchmark to compare the performance of different configurations when evaluating specific expressions in a specific way or environment. The benchmark is based on BenchmarkDotNet.

To run the benchmark, you can use the following command:

dotnet run -c Release dotnet run -c Release --project Adletec.Sonic.Benchmark/Adletec.Sonic.Benchmark.csproj

Take a look at Program.cs to see how to extend or adjust the benchmark.

Comparison with other Libraries

To get a better understanding of the performance of sonic, the benchmark also includes a set of comparisons with other popular expression evaluators for .NET.

Disclaimer: Keep in mind that all those libraries have unique features and performance is only one aspect when choosing the right library for your project. The following comparison is in no way a statement towards the general superiority/inferiority of any of the listed libraries.

Benchmark Setup

We're using a simple benchmark which will take the same three equations and evaluate them using the same values with all libraries:

  • Expression A - Simple expression var1 + var2 * var3 / 2
  • Expression B - Balanced expression including functions and constants: sin(var1) + cos(var2) + pi^2
  • Expression C - Foldable expression: (var1 + var2 * var3 / 2) * 0 + 0 / (var1 + var2 * var3 / 2) + (var1 + var2 * var3 / 2)^0

To make sure the expressions will be re-evaluated, we're incrementing each variable on every iteration.

The benchmark runs all iterations on the same machine (MacBook Pro 2021, M1 Max).

Benchmark Results
Default Settings

The following table shows the time in seconds it takes the benchmark to complete 100.000 evaluations of each expression using the default settings of each library. As a reference, it also contains the time it takes to evaluate the same expressions using hardcoded C#.

Library Expression A Expression B Expression C
Hardcoded C# 1.036 ms 1.029 ms 1.036 ms
sonic 6.376 ms 9.145 ms 2.853 ms
Jace.NET 22.637 ms 24.918 ms 29.710 ms
NCalc 33.579 ms 51.400 ms 127.165 ms

Keep in mind that this is a very specific benchmark and not entirely fair. The frameworks are using different default settings which might not be optimal for the given benchmark. You can get a better understanding of the performance of each library by running the benchmark yourself and adjusting the expressions to your needs.

Project Origin

When we originally forked Jace.NET, the idea was to give it a new home. At the time of writing, the upstream repository still has 11 unmerged pull requests (which are mostly merged into sonic now). It takes time and effort to maintain an open source library, and we're very thankful for the fantastic foundation which is Jace.NET. Pieter De Rycke's original code is still a very large part of sonic, and so is the work of all who have contributed to Jace.NET over the years.

However, as a company, using a software component which seems to be in a dormant state introduces a significant risk. Our decision to create a maintained fork of Jace.NET was mainly driven by the necessity to mitigate this risk, while still using the best expression evaluator available for .NET.

While Jace.NET is still the origin of this project, sonic has diverged from its ancestor in quite some way, including major changes to the API. These changes were - in part - necessary to fix some architectural problems we encountered in the code base. Being able to add functions and constants after parsing and folding steps are completed introduced a lot of headaches and complexity in the usage of Jace.NET while adding almost no real world benefit over doing the same steps before any evaluation has taken place.

It also showed that the Jace.NET API evolved to its current state rather than following a clear design, which makes it harder to understand: which of the three ways to evaluate an expression is the right one for a specific use case? How do they differ at all?

After putting many hours of work into our Jace.NET fork, we decided that it no longer made sense to maintain API compatibility, and this was the birth hour of sonic.

When compared to Jace.NET, sonic shows to be at least as fast as Jace.NET. Often, sonic outperforms Jace.NET by a significant factor, the notable exception being re-evaluation with disabled cache. This is due to a still existing bug in Jace.NET which prevents the user from actually disabling the cache.

We're using sonic in our commercial products and it's stress tested many thousand hours per year. We fixed a lot of bugs, we're constantly benchmarking and testing new kinds of expressions to make sure that we don't overfit to a specific kind of test.

The success of our products would not have been possible without the great work of Pieter De Rycke and the Jace.NET community. Open sourcing sonic and offering a new home to the Jace.NET community is our way of giving back and to say Thank You..

Contributing

Your contributions are welcome. To streamline the process, take note of the following best practices:

  • Always discuss your goal and solution in an issue before implementing a solution or even opening a pull request. This potentially saves a lot of time and rework compared to having the same conversation after you open your pull request.
  • Do one thing (feature, bugfix, change,...) per pull request. If you need one thing to do another, break them up in separate requests.
  • Please keep pull requests to a manageable size, so we can clearly understand the changes and intent.
  • Add tests to prove your code is doing what it says and make sure there are no broken tests.
  • Run the benchmark suite and make sure that your change didn't (negatively) impact performance. If so, clearly state why this is necessary.

FAQ

Q: Why is the main project still on .NET Standard 1.6?<br/> A: While upgrading the project to .NET 7.0 would give us access to a couple of nice language features, there is no real benefit for the user of the library. But if we'd upgrade, we'd also force everyone who's currently on .NET < 7.0 to upgrade, too - which might break their use-case. This might change in the future, if there is a significant performance or even maintainability benefit from a newer target framework. At the moment, this is not the case.

Q: What is the purpose of demo application in the solution?<br/> A: The original Jace.NET contained a demo application just like this. It shows how an expression is parsed and illustrates the AST derived from it. This is a cross-platform version of the same demo, built using Avalonia UI. It's a nice little thing if you want to get a better understanding of what sonic does internally. It's not a good example of how to use sonic, though. If you want to see a lot of usage examples, take a look at the tests.

License

FOSSA Status

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.6 is compatible.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.0 8,001 2/9/2024
1.4.1 1,811 12/26/2023
1.4.0 467 11/28/2023
1.3.2 422 11/16/2023
1.3.1 408 11/12/2023
1.3.0 421 11/6/2023
1.2.0 498 9/20/2023
1.1.0 489 9/20/2023
1.1.0-beta-6 490 8/23/2023
1.1.0-beta-5 459 8/22/2023
1.1.0-beta-4 457 8/22/2023
1.1.0-beta-3 471 8/22/2023