Click or drag to resize

Evaluator Methods

The Evaluator type exposes the following members.

Methods
  NameDescription
Public methodAddMethod
Allows a method definition to be added to the expression execution context and referenced within the expression.
Public methodAddReference(Assembly)
Allows methods and types from an external library to be referenced within an expression by providing a reference to the already loaded assembly from the calling code.
Public methodAddReference(String)
Allows methods and types from an external library to be referenced within an expression by providing the path to the location of the assembly where they're defined.
Public methodAddUsing
Allows namespaces to be added to expression execution context so code within expression does not have to fully qualify classes.
Public methodEval
Executes the expression and returns the resulting value.
Public methodStatic memberEval(String)
Simplified static method to execute an expression and return the resulting value.
Public methodEvalT
Executes the expression and returns the resulting value, cast as the specified object type.
Public methodStatic memberEvalT(String)
Simplified static method to execute an expression and return the resulting value, cast as the specified object type.
Public methodExec
Executes the expression without returning a value. Resulting new variable values that were updated inside the expression can be subsequently accessed using GetVariable(String) or ItemString.
Public methodGetVariable
Returns the value of a variable referenced within the expression after evaluation.
Public methodSetVariable(String, Object)
Sets the value of a variable referenced within the expression prior to evaluation.
Public methodSetVariable(String, Object, Type)
Sets the value of a variable referenced within the expression prior to evaluation. This override allows specifying the Type of the variable instead of trying to introspect it. Also allows for passing null as the value.
Top
See Also