Skip to content

Releases: zzzprojects/Eval-Expression.NET

v3.0.8

11 Dec 16:47

Choose a tag to compare

Download the library here

  • ADDED: The DefaultNumberType option to let you choose the default type when none is specified
var context = new EvalContext();
context.DefaultNumberType = DefaultNumberType.Double;
var result = context.Execute("1/2"); // 0.5

Trial unlocked until the end of December

v3.0.7

25 Nov 15:57

Choose a tag to compare

Download the library here

  • Monthly Trial Release

Trial unlocked until the end of December

v3.0.6

18 Nov 22:22

Choose a tag to compare

Download the library here

  • FIXED: Issue with generic type + < operator

Trial unlocked for the current month (November)

v3.0.5

14 Nov 19:07

Choose a tag to compare

Download the library here

  • ADDED: Support to constructors with dynamic parameter && many more case ;)
  • FIXED: Issue when the list of constructor parameter end with a comma

Trial unlocked for the current month (November)

v3.0.4

12 Nov 18:10

Choose a tag to compare

Download the library here

  • ADDED: LINQ Dynamic now has an overload that allows using only string
list.Where(x => "x < 2"); // already supported
list.Where("x => x < 2"); // supported since v3.0.4

Trial unlocked for the current month (November)

v3.0.3

30 Oct 13:36

Choose a tag to compare

Download the library here

  • ADDED: EvalManager.IsCommunity

Since there is now free features (LINQ + Evaluation with 50 or fewer characters), when IsCommunity = true, it will automatically throw an error when a license would have been required (evaluation with more than 50 characters) instead of being in trial mode.

Trial unlocked for the current month (November)

v3.0.2

30 Oct 12:32

Choose a tag to compare

Download the library here

  • REMOVED: Dependency added on Microsoft.Data.SqlClient instead of System.Data.SqlClient. People reported us issue due to using one or others. We will no longer support registering SqlClient by default.

It's possible to do it on your side with the following code:

EvalManager.DefaultContext.RegisterType(typeof(SqlCommand));
EvalManager.DefaultContext.RegisterType(typeof(SqlConnection));
EvalManager.DefaultContext.RegisterType(typeof(SqlDataReader));

Trial unlocked for the current month (November)

v3.0.1

29 Oct 22:33

Choose a tag to compare

Download the library here

  • ADDED: Support to .NET Standard 2.1, starting from this version, the library have now dependencies on Microsoft.Data.SqlClient instead of System.Data.SqlClient. The dependency might be removed from all .NET Standard version if that starts to be problematic.

Trial unlocked for the current month (November)

v3.0.0

29 Oct 20:42

Choose a tag to compare

Download the library here

  • FREE: All evaluations with 50 characters or less is now FREE
  • FREE: All LINQ dynamic methods are now FREE

  • BREAKING CHANGES: All LINQ dynamic method is now found in the System.Linq namespace instead of Z.Expressions to make them easier to use.
  • BREAKING CHANGES: ALL LINQ dynamic method without the Dynamic suffix now have the suffix to make it simpler and more obvious. Affected methods: SkipWhile, TakeWhile, Where, All, Any, Count, First, FirstOrDefault, Last, LastOrDefault, LongCount, Single, SingleOrDefault

Trial unlocked for the current month (November)

v2.9.57

16 Oct 13:42
4f9f71e

Choose a tag to compare

Download the library here

  • ADDED: Support to Alias for Static Method when none exist with the initial name
public Execute()
{
	var context = new EvalContext();
	context.RegisterStaticMethod(typeof(AliasMethod));
	context.RegisterAlias("Method3", "Method2");

	var x2 = context.Execute("Method3(2)");
}

public class AliasMethod
{
	public static int Method2(int x)
	{
		return x + x;
	}
}

Trial unlocked for the current month (November)