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)); }
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)); }
public async override Task <bool> Passes() => await RuleTree.PassesAnd(Children);
public override async Task <bool> Passes() => _func() && await RuleTree.PassesAnd(Children);