Click or drag to resize
ExpressionEvalCompute Method (IVariableContainer, String, Boolean)
Compiles and executes string expression

Namespace: FlexRule.DynamicEvaluation
Assembly: FlexRule.Core.Library (in FlexRule.Core.Library.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public abstract Object Compute(
	IVariableContainer variables,
	string expression,
	bool shortCircuit = true
)

Parameters

variables
Type: FlexRuleIVariableContainer
Variables in the expression
expression
Type: SystemString
String expression to be computed
shortCircuit (Optional)
Type: SystemBoolean
Always short circuit OR, AND operators

Return Value

Type: Object
Result of the computed expression that can be in any type

Implements

IEvalEngineCompute(IVariableContainer, String, Boolean)
Exceptions
ExceptionCondition
ParserExceptionWhen parsing of expression is failed due to any reason that can be identified by ParserError
EvaluatorExceptionWhen evaluation of an expression fails that can be identifies by EvaluationError
See Also