예제 #1
0
        public override async Task <bool> Passes()
        {
            bool result = false;

            if (ComparisonValue is T comparisonValue)
            {
                result = Set?.Contains(comparisonValue) ?? false;
            }
            return(result && await RuleTree.PassesAnd(Children));
        }
예제 #2
0
        public async override Task <bool> Passes()
        {
            bool result = false;

            if (ComparisonValue is IComparable comparisonValue)
            {
                result = comparisonValue.IsGreaterThanOrEqualTo(From) &&
                         comparisonValue.IsLessThanOrEqualTo(To);
            }

            return(result && await RuleTree.PassesAnd(Children));
        }
예제 #3
0
 public async override Task <bool> Passes()
 => await RuleTree.PassesAnd(Children);
예제 #4
0
 public override async Task <bool> Passes()
 => _func() && await RuleTree.PassesAnd(Children);