We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customer customer = Customers[0]; JsonObject jsonObject = new JsonObject(); jsonObject.Add("City", "Paris"); jsonObject.Add("Column2", 1); string query = " City = \"Paris\""; JObject jObject = new JObject { ["City"] = "Paris", ["Column2"] = 1 }; var config = new ParsingConfig { ResolveTypesBySimpleName = true, AllowNewToEvaluateAnyType = true }; var expression = DynamicExpressionParser.ParseLambda<JObject, bool>(config, true, query); string s = expression.ToString(); var del = expression.Compile(); var result = del.Invoke(jObject); Check.That(result).IsEqualTo(true);
The correct running result result is true. When this code is set as ParseLambda<Customer, bool>, the result after running is true.
result
true
ParseLambda<Customer, bool>
But set to ParseLambda<JObject, bool> ParseLambda<JsonObject, bool> ParseLambda<dynamic, bool> After running this code, the result is false.
I wonder what's wrong?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The correct running result
result
istrue
.When this code is set as
ParseLambda<Customer, bool>
, theresult
after running istrue
.But set to ParseLambda<JObject, bool>
ParseLambda<JsonObject, bool>
ParseLambda<dynamic, bool>
After running this code, the result is false.
I wonder what's wrong?
The text was updated successfully, but these errors were encountered: