예제 #1
0
        public override int GetHashCode()
        {
            // Combine all relevant fields with XOR to get the Hash.
            int iHash = m_CenterPoint.GetHashCode();

            iHash ^= m_PenStyle.GetHashCode();
            return(iHash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            // combine all relevant fields with XOR to get the Hash.

            int iHashCode = 0;

            foreach (Point p in m_PointList)
            {
                iHashCode ^= p.GetHashCode();
            }

            iHashCode ^= m_PenStyle.GetHashCode();

            return(iHashCode);
        }