/// <summary> /// Returns true if ResponseBox instances are equal /// </summary> /// <param name="other">Instance of ResponseBox to be compared</param> /// <returns>Boolean</returns> public bool Equals(ResponseBox other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( MinLat == other.MinLat || MinLat.Equals(other.MinLat) ) && ( MaxLat == other.MaxLat || MaxLat.Equals(other.MaxLat) ) && ( MinLng == other.MinLng || MinLng.Equals(other.MinLng) ) && ( MaxLng == other.MaxLng || MaxLng.Equals(other.MaxLng) )); }
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)); }