public override Boolean Contains(Expression other) { CollectionExpression ce = other as CollectionExpression; return(ce != null && Enumerable.All(Caster.Cast <object>(_collection), delegate(Object item) { return Enumerable.Contains(Caster.Cast <object>(ce._collection), item); })); }
public override Boolean Contains(Expression other) { CollectionExpression <TValue> ce = other as CollectionExpression <TValue>; if (ce == null) { return(false); } IEnumerable <TValue> collection = ce.Collection; return(Enumerable.All <TValue>(collection, delegate(TValue item) { return Enumerable.Contains <TValue>(collection, item, _comparer); })); }