Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 57;

            hash = 27 * hash * Latitude.GetHashCode();
            hash = 27 * hash * Longitude.GetHashCode();
            hash = 27 * hash * FixTime.GetHashCode();
            return(hash);
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }

            WorldPoint other = (WorldPoint)obj;

            return
                (Latitude.Equals(other.Latitude) &&
                 Longitude.Equals(other.Longitude) &&
                 FixTime.Equals(other.FixTime));
        }