Skip to content

Releases: zzzprojects/Eval-Expression.NET

v2.1.2

08 Jun 16:34
Compare
Choose a tag to compare

Download the library here

FIXED: Issue with a constructor using an optional parameter. More work will be done very soon to provide a better constructor overload support.

PRO Version unlocked for the current month (June)

v2.1.1

06 Jun 19:49
Compare
Choose a tag to compare

Download the library here

FIXED: Full namespace used in Generic Type (Issue #7)

Example:

var context = new EvalContext();
context.RegisterType(typeof(System.Collections.Generic.List<>));
context.RegisterType(typeof(string));

//Not Error
var xx2 = context.Compile<Func<System.Collections.Generic.List<System.String>, object>>(@"
	var lst = new System.Collections.Generic.List<List<System.String>>();
	return lst;", "reader");

//Error
var xx = context.Compile<Func<System.Collections.Generic.List<System.String>, object>>(@"
	var lst = new System.Collections.Generic.List<System.Collections.Generic.List<System.String>>();
	return lst;", "reader");

PRO Version unlocked for the current month (June)

v2.1.0

31 May 16:06
Compare
Choose a tag to compare

Download the library here

MOVED: Code has been migrated to VS2015 with Shared Project.

PRO Version unlocked for the current month (June)

v2.0.9

15 May 15:04
Compare
Choose a tag to compare

Download the library here

FIXED: Method overload resolution when with normal && expanded expression.

Example

Was resolved with Eval.Execute(this string, param object[]) method instead of Eval.Execute(this string, object) method

Dictionary<string, object> Values = new Dictionary<string, object>() { { "value1", 20.35 }, { "value2", 61.48 } };

double result1 = Eval.Execute<double>(@" double result1 = Eval.Execute<double>(@'value1 + value2', Values);
        ", new { Values = Values });

PRO Version unlocked for the current month (May)

v2.0.8

06 May 19:04
Compare
Choose a tag to compare

Download the library here

FIXED: Null reference issue with null parameter (Issue #6)

Example

dynamic expandoObject = new ExpandoObject();
expandoObject.Property1 = false;
expandoObject.Property2 = null;

if (Eval.Execute<bool>(@"Property1 == null", expandoObject ))
{
    Console.WriteLine(@"Property1 == true");
}

PRO Version unlocked for the current month (May)

v2.0.6

23 Apr 23:27
Compare
Choose a tag to compare

Download the library here

ADDED: Example project

PRO Version unlocked for the current month (May)

v2.0.5

18 Apr 01:46
Compare
Choose a tag to compare

Download the library here

FIXED: Issue with anonymous type and getter

dynamic item = Eval.Execute("var x = new { X = 1, Y = 2}; return x;");
var valueX = item.X;

PRO Version unlocked for the current month (April)

v2.0.4

30 Mar 20:53
Compare
Choose a tag to compare

Download the library here

PRO Version unlocked for the current month (April)

v2.0.3

28 Feb 15:50
Compare
Choose a tag to compare

Download the library here

FIXED: Issue with "Setup License from config file" starting with version 2.0.0

PRO Version unlocked for the current month (March)

v2.0.2

30 Jan 23:39
Compare
Choose a tag to compare

Download the library here

PRO Version unlocked for the current month (February)