Class Interpreter
Class used to parse and compile a text expression into an Expression or a Delegate that can be invoked. Expression are written using a subset of C# syntax. Only get properties, Parse and Eval methods are thread safe.
Inherited Members
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)
Parse and invoke 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. |