Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
        /// <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);
        }