Skip to content

Instantly share code, notes, and snippets.

@FrancescoBonizzi
Created October 5, 2021 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancescoBonizzi/55ecbfec5ae2d4d556498c965caf64fe to your computer and use it in GitHub Desktop.
Save FrancescoBonizzi/55ecbfec5ae2d4d556498c965caf64fe to your computer and use it in GitHub Desktop.
var boolli = new Evaluator();
bool result = boolli.EvaluateFuncOfBoolExpression(
"f1 and f2",
new NamedBooleanFunction[]
{
new NamedBooleanFunction("f1", () => true),
new NamedBooleanFunction("f2", () => false),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment