Example #1
0
        internal override bool IsPartitionedBy(LambdaExpression keySel, object comp)
        {
            // Match the key selector functions:
            if (!this.IsPartitionedBy(keySel))
            {
                return(false);
            }

            // Check the comparers:
            IEqualityComparer <TKey> comp1 = TypeSystem.GetEqualityComparer <TKey>(comp);

            if (comp1 == null)
            {
                return(false);
            }
            return(this.m_comparer.Equals(comp1));
        }