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)); }
public override int GetHashCode() { return(NearLeft.GetHashCode() ^ NearRight.GetHashCode() ^ FarLeft.GetHashCode() ^ FarRight.GetHashCode()); }