字符串表达式执行引擎 NUGET
开源地址:https://github.com/yuzd/FastExpressionEngine
Install-Package FastExpressionEngine
Document
var bre = new ExpressionEngine();
dynamic datas = new ExpandoObject();
datas.count = 1;
datas.name = "avqqq";
var inputs = new dynamic[]
{
datas
};
var resultList =
bre.Execute("count < 3 AND name.Contains(\"av\") AND name.StartsWith(\"av\")", inputs);
var resultListIsSuccess = resultList.IsSuccess;