Created
October 5, 2021 08:50
-
-
Save FrancescoBonizzi/a7c66afa6d1f7c3454e3b3f0ba929f77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var boolli = new Evaluator(); | |
bool result = await boolli.EvaluateFuncOfBoolExpressionAsync( | |
"f3 and f4", | |
new NamedAsyncBooleanFunction[] | |
{ | |
new NamedAsyncBooleanFunction("f3", async () => { await Task.Delay(100); return true; }), | |
new NamedAsyncBooleanFunction("f4", async () => { await Task.Delay(100); return true; }), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment