sklose / NCalc2

expression evaluator for .NET with built-in compiler
MIT License
170 stars 58 forks source link

Allow value type contexts #48

Closed rexcfnghk closed 4 years ago

rexcfnghk commented 4 years ago

This PR removes the restriction where TContext must be a reference type, which I think is unnecessarily restrictive.

The caller of ToLambda should bear the responsibility of understanding the performance characteristics of using a reference type vs a value type.