public OptionalGeoPoint(IOptionalGeoPoint geoPoint) { ParamIs.NotNull(() => geoPoint); Validate(geoPoint.Latitude, geoPoint.Longitude); Latitude = geoPoint.Latitude; Longitude = geoPoint.Longitude; }
public virtual bool Equals(IOptionalGeoPoint other) { if (other == null) { return(IsEmpty); } return((Latitude == other.Latitude) && (Longitude == other.Longitude)); }