示例#1
0
            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)));
            }
示例#2
0
        public static bool DependsOn(this IEnumerable <Expression> f, IEnumerable <Expression> x)
        {
            DependsOnVisitor V = new DependsOnVisitor(x.Buffer());

            return(f.Any(i => V.Visit(i)));
        }