Skip to content

Instantly share code, notes, and snippets.

@FrancescoBonizzi
Created April 21, 2021 05:22
Show Gist options
  • Save FrancescoBonizzi/7ccfd0dd6d4d77d03f7be424f760764e to your computer and use it in GitHub Desktop.
Save FrancescoBonizzi/7ccfd0dd6d4d77d03f7be424f760764e to your computer and use it in GitHub Desktop.
var boolli = new Evaluator();
string booleanExpression = "not 1 and 0 or (true and false)";
bool result = boolli.EvaluateBooleanExpression(booleanExpression);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment