/// <summary> /// Evaluate standard predicate /// </summary> public override bool Visit(ILocStandardPredicate entity, ILocState data) { var includes = entity.Includes; var excludes = entity.Excludes; if (includes.IsEmpty && excludes.IsEmpty) { return(true); } if (includes.IsEmpty) { return(!excludes.Accept(this, data)); } return(includes.Accept(this, data) && !excludes.Accept(this, data)); }
public virtual TReturn Visit(ILocStandardPredicate entity, TData data) { return(Visit((ILocPredicate)entity, data)); }
public override PredicateItem Visit(ILocStandardPredicate entity, IRailway data) { return(new StandardPredicateItem(entity, data)); }