Skip to content

Releases: zzzprojects/Eval-Expression.NET

v3.0.0

29 Oct 20:42
Compare
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
Compare
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)

v2.9.56

10 Oct 18:42
4f9f71e
Compare
Choose a tag to compare

Download the library here

  • ADDED: It is now possible to add a variable with space or other special characters
var values = new Dictionary<string, object>() { 
 { "variable with space", 98 }
};

int result = Eval.Execute<int>("variable with space + 1", values);

Trial unlocked for the current month (November)

v2.9.55

02 Oct 11:07
Compare
Choose a tag to compare

Download the library here

  • ADDED: Support to method when registering member via RegisterGlobalVariable
public class GlobalVariableMethod
{
	public int RegisteredMethodName(int i)
	{
		return i + 2;
	}
}
		
var variableName = new GlobalVariableMethod();
var context = new EvalContext();
context.RegisterGlobalVariable("CustomGlobalVariable", variableName, true);

var rTest = context.Execute("RegisteredMethodName(5)");

Trial unlocked for the current month (October)

v2.9.54

24 Sep 02:12
Compare
Choose a tag to compare

Download the library here

  • Monthly trial release

Trial unlocked for the current month (October)

v2.9.52

06 Sep 19:51
Compare
Choose a tag to compare

Download the library here

  • ADDED: New options: AutoAddMissingTypes which automatically retry the expression and add the missing type to the context for future compilation

Trial unlocked for the current month (September)

v2.9.51

05 Sep 17:52
Compare
Choose a tag to compare

Download the library here

  • IMPROVED: The option recently added RetryAndFindMissingTypes has been modified to RetryAndThrowMissingTypes. The code now throw an error to make it clearer

Trial unlocked for the current month (September)

v2.9.50

04 Sep 03:41
Compare
Choose a tag to compare

Download the library here

  • FIXED: Issue with Math.E registered as static member and expression using the variable E

Trial unlocked for the current month (September)

v2.9.49

29 Aug 14:02
Compare
Choose a tag to compare

Download the library here

  • ADDED: New options UsedTypes, MissingTypes, RetryAndFindMissingTypes to check what type has been used during the last compilation

Trial unlocked for the current month (September)

v2.9.48

25 Aug 13:47
Compare
Choose a tag to compare

Download the library here

  • Monthly trial release

Trial unlocked for the current month (September)