public override int GetHashCode() { unchecked { int hashCode = MinLat.GetHashCode(); hashCode = (hashCode * 397) ^ MinLon.GetHashCode(); hashCode = (hashCode * 397) ^ MaxLat.GetHashCode(); hashCode = (hashCode * 397) ^ MaxLon.GetHashCode(); return(hashCode); } }
public bool Equals(Envelope other) { return(!ReferenceEquals(null, other) && MinLat.Equals(other.MinLat) && MinLon.Equals(other.MinLon) && MaxLat.Equals(other.MaxLat) && MaxLon.Equals(other.MaxLon)); }