If I had a line with something like this:
"if (24 == 24) AND ((true == false) OR (true == true)) AND ('HELLO' != 'WORLD')"
How can I dynamically evaluate this in code using C # /. Net?
We have a dynamic "rule engine" where the user defines the rules. So the rule could be
if (@Number == 24) AND ((@SomeVal1 == false) OR (@SomeVal2 == true)) AND ('@CustomerFirstName' != '@CustomerLastName').
We would like to do a simple search / replace for @ variables and then evaluate the string.
source share