public override int GetHashCode() { unchecked { var result = NorthLatitude.GetHashCode(); result = (result * 397) ^ WestLongitude.GetHashCode(); result = (result * 397) ^ SouthLatitude.GetHashCode(); result = (result * 397) ^ EastLongitude.GetHashCode(); return(result); } }
/// <summary> /// Converts the Boundingbox data to an xml element /// </summary> /// <returns>XElement of bounding box</returns> public XElement ToXml() { var boundingBoxElement = new XElement( "BoundingBox", new XAttribute("SouthLatitude", SouthLatitude.ToString()), new XAttribute("NorthLatitude", SouthLatitude.ToString()), new XAttribute("WestLongitude", SouthLatitude.ToString()), new XAttribute("EastLongitude", SouthLatitude.ToString())); return(boundingBoxElement); }