Ejemplo n.º 1
0
        public void False(IEvaluatorRule <T> evaluator)
        {
            Action <IRuleBuilder <T> > proxy = builder => builder.Eval(evaluator).IsFalse();

            //void IFluentExpressionBuilder<T>.Rule(Action<IRuleBuilder<T>> action)

            ((IFluentExpressionBuilder <T>) this).Rule(proxy);
        }
Ejemplo n.º 2
0
        IRuleConditionBuilder IRuleBuilder <T> .Eval(IEvaluatorRule <T> evaluator)
        {
            this.evaluatorx = evaluator;
            string name = evaluator.GetType().Name;

            this.rule = new LogicDefine.Rule()
            {
                Id = name, TrueCondition = true
            };
            return(this);
        }