示例#1
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = (hash * 7) + PrimaryKey.GetHashCode();
            hash = (hash * 7) + SecondaryKey.GetHashCode();
            return(hash);
        }
        public int CompareTo(KeyedEnumerator <T> other)
        {
            var result = ItemComparer.Compare(Current, other.Current);

            if (result == 0)
            {
                result = SecondaryKey.CompareTo(other.SecondaryKey);
            }

            return(result);
        }