Example #1
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (XCoordinate != null)
            {
                hashCode ^= XCoordinate.GetHashCode();
            }
            if (YCoordinate != null)
            {
                hashCode ^= YCoordinate.GetHashCode();
            }
            if (!string.IsNullOrEmpty(MarkColorName))
            {
                hashCode ^= MarkColorName.GetHashCode();
            }
            if (!string.IsNullOrEmpty(Text))
            {
                hashCode ^= Text.GetHashCode();
            }

            return(hashCode);
        }
Example #2
0
 public override int GetHashCode()
 {
     return(XCoordinate.GetHashCode() ^ YCoordinate.GetHashCode());
 }