[]
Base class that represents parsed expressions.
public class Expression : IComparable<Expression>
For example:
Expression expr = scriptEngine.Parse(strExpression);
object val = expr.Evaluate();
Name | Description |
---|---|
CompareTo(Expression) | Compares the value of this Expression to the value of another Expression. |
Evaluate() | Returns the value of the Expression. |
Optimize() | Returns an equal or simpler (but equivalent) version of the Expression. |
Name | Description |
---|---|
implicit operator bool(Expression) | Evaluates the expression and returns the result converted to a Boolean value. |
implicit operator DateTime(Expression) | Evaluates the expression and returns the result converted to a DateTime value. |
implicit operator double(Expression) | Evaluates the expression and returns the result converted to a double. |
implicit operator string(Expression) | Evaluates the expression and returns the result converted to a string. |