C# 클래스 Kooboo.Commerce.Rules.Conditions.ExpressionEvaluator

Represents a evaluator to evaluate the result of a condition expression.
상속: Kooboo.Commerce.Rules.Conditions.Expressions.ExpressionVisitor
파일 보기 프로젝트 열기: Kooboo/Ecommerce 1 사용 예제들

공개 메소드들

메소드 설명
Evaluate ( Expression expression, object dataContext ) : bool

Evalute the value of the specified condition expression.

ExpressionEvaluator ( RuleParameterProviderCollection parameterProviders, ComparisonOperatorCollection comparisonOperators ) : System

보호된 메소드들

메소드 설명
Visit ( ComparisonExpression exp ) : void
Visit ( LogicalBindaryExpression exp ) : void

메소드 상세

Evaluate() 공개 메소드

Evalute the value of the specified condition expression.
public Evaluate ( Expression expression, object dataContext ) : bool
expression Kooboo.Commerce.Rules.Conditions.Expressions.Expression The condition expression to evaluate.
dataContext object The context object.
리턴 bool

ExpressionEvaluator() 공개 메소드

public ExpressionEvaluator ( RuleParameterProviderCollection parameterProviders, ComparisonOperatorCollection comparisonOperators ) : System
parameterProviders RuleParameterProviderCollection
comparisonOperators ComparisonOperatorCollection
리턴 System

Visit() 보호된 메소드

protected Visit ( ComparisonExpression exp ) : void
exp Kooboo.Commerce.Rules.Conditions.Expressions.ComparisonExpression
리턴 void

Visit() 보호된 메소드

protected Visit ( LogicalBindaryExpression exp ) : void
exp Kooboo.Commerce.Rules.Conditions.Expressions.LogicalBindaryExpression
리턴 void