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
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…