コード例 #1
0
        public bool Equals(MapRegion other)
        {
            if (other == null)
            {
                return(false);
            }

            return(NearLeft.Equals(other.NearLeft) &&
                   NearRight.Equals(other.NearRight) &&
                   FarLeft.Equals(other.FarLeft) &&
                   FarRight.Equals(other.FarRight));
        }
コード例 #2
0
 public override int GetHashCode()
 {
     return(NearLeft.GetHashCode() ^ NearRight.GetHashCode()
            ^ FarLeft.GetHashCode() ^ FarRight.GetHashCode());
 }