コード例 #1
0
        public override Boolean Equals(Expression other)
        {
            CollectionExpression <TValue> ce = other as CollectionExpression <TValue>;

            if (ce == null)
            {
                return(false);
            }

            IEnumerable <TValue> otherCollection = ce.Collection;

            return(Enumerable.SequenceEqual(Collection, otherCollection, _comparer));
        }
コード例 #2
0
        public override Boolean Equals(Expression other)
        {
            CollectionExpression ce = other as CollectionExpression;

            return(ce != null && Enumerable.SequenceEqual(Caster.Cast <object>(_collection), Caster.Cast <object>(ce._collection)));
        }