Skip to content

Code Comments Management

Coding Seb edited this page Jan 19, 2019 · 1 revision

By default comments are not managed in expressions and scripts evaluations. But they can be manually removed with the specific method string RemoveComments(string scriptWithComments)

To be sure that your commented script is evaluated correctly you can do :

ExpressionEvaluator evaluator = new ExpressionEvaluator();
evaluator.ScriptEvaluate(evaluator.RemoveComments(scriptWithComments));

It remove line comments // and blocks comments /* ... */ but keep them in strings

Table Of Content

Clone this wiki locally