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); }
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); }