In my project there is a Logic evaluation
section, it take input as a string which contains logical expressions
(true/false
) .
I want to evaluate this string and return a final Boolean value.
string Logic="1&0|1&(0&1)"
//string Logic="true AND false OR true AND (false AND true)"
This will be my Logic
. The length might increase.
Is there any way to Evaluate this expression from LINQ / Dynamic LINQ
?