Class Interpreter
Class used to parse and compile a text expression into an Expression or a Delegate that can be invoked. Expressions are written using a subset of C# syntax. Only get properties, Parse, and Eval methods are thread-safe.
Namespace: Evergine.Framework.Helpers.BoolEvaluation
Assembly: Evergine.Framework.dll
Syntax
public class Interpreter
Constructors
Interpreter()
Initializes a new instance of the Interpreter class.
Declaration
public Interpreter()
Methods
Eval(string)
Parses and invokes the specified expression.
Declaration
public bool Eval(string expressionText)
Parameters
Type | Name | Description |
---|---|---|
string | expressionText | The expression text. |
Returns
Type | Description |
---|---|
bool | Returns the boolean value of the expression. |