C# Class Kooboo.Commerce.Rules.Conditions.ConditionEvaluator

Mostra file Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
Evaluate ( Condition condition, object dataContext ) : bool
Evaluate ( Expression expression, object dataContext ) : bool
Evaluate ( IEnumerable conditions, object dataContext ) : bool
Evaluate ( string expression, object dataContext ) : bool

Check if the specified condition can be fullfilled by the context.

Method Details

Evaluate() public method

public Evaluate ( Condition condition, object dataContext ) : bool
condition Condition
dataContext object
return bool

Evaluate() public method

public Evaluate ( Expression expression, object dataContext ) : bool
expression Kooboo.Commerce.Rules.Conditions.Expressions.Expression
dataContext object
return bool

Evaluate() public method

public Evaluate ( IEnumerable conditions, object dataContext ) : bool
conditions IEnumerable
dataContext object
return bool

Evaluate() public method

Check if the specified condition can be fullfilled by the context.
public Evaluate ( string expression, object dataContext ) : bool
expression string The condition expression. e.g., Param1 > 18 AND Param2 == "Value"
dataContext object The contextual object.
return bool