[]
        
(Showing Draft Content)

C1.WPF.Binding.Expression

Expression Class

Base class that represents parsed expressions.

Inheritance
Expression
Implements
Namespace: C1.WPF.Binding
Assembly: C1.WPF.Binding.4.6.2.dll
Syntax
public class Expression : IComparable<Expression>
Remarks

For example:

Expression expr = scriptEngine.Parse(strExpression);
object val = expr.Evaluate();

Methods

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.

Operators

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.