public bool DependsOn(IEnumerable <Expression> x) { DependsOnVisitor v = new DependsOnVisitor(x); // It's faster to check the keys first. return (this.Any(i => v.Visit(i.Key)) || this.Any(i => v.Visit(i.Value))); }
public static bool DependsOn(this IEnumerable <Expression> f, IEnumerable <Expression> x) { DependsOnVisitor V = new DependsOnVisitor(x.Buffer()); return(f.Any(i => V.Visit(i))); }