Exemple #1
0
        public OptionalGeoPoint(IOptionalGeoPoint geoPoint)
        {
            ParamIs.NotNull(() => geoPoint);

            Validate(geoPoint.Latitude, geoPoint.Longitude);
            Latitude  = geoPoint.Latitude;
            Longitude = geoPoint.Longitude;
        }
Exemple #2
0
        public virtual bool Equals(IOptionalGeoPoint other)
        {
            if (other == null)
            {
                return(IsEmpty);
            }

            return((Latitude == other.Latitude) && (Longitude == other.Longitude));
        }