Quantcast
Channel: Fast Lightweight Expression Evaluator
Viewing all articles
Browse latest Browse all 96

New Post: Is there a way to check whether the expression is valid before evaluating it?

$
0
0
Hi,

New here, so hi.

Excellent project.

Got it working in MVC3, .NET4. C# environment to test rules against class objects. Looks good.
However I have found an issue, and that is I need to validate the expression to check it can compile before evaluating it, otherwise I will get a runtime exception. which crashes the application. I do not mind a graceful failure. Perhaps just wrapping the "evaluate" in a try catch block is enough. However is there a better method to do this, perhaps there is a method in FLEE.

Many thanks,

Ed

Viewing all articles
Browse latest Browse all 96

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>