Example #1
0
        /// <summary>
        /// Returns true if ResponseGeocodingProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseGeocodingProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseGeocodingProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Label == other.Label ||
                     Label != null &&
                     Label.Equals(other.Label)
                 ) &&
                 (
                     Score == other.Score ||

                     Score.Equals(other.Score)
                 ) &&
                 (
                     HouseNumber == other.HouseNumber ||
                     HouseNumber != null &&
                     HouseNumber.Equals(other.HouseNumber)
                 ) &&
                 (
                     Street == other.Street ||
                     Street != null &&
                     Street.Equals(other.Street)
                 ) &&
                 (
                     Region == other.Region ||
                     Region != null &&
                     Region.Equals(other.Region)
                 ) &&
                 (
                     RegionCode == other.RegionCode ||
                     RegionCode != null &&
                     RegionCode.Equals(other.RegionCode)
                 ) &&
                 (
                     Neighbourhood == other.Neighbourhood ||
                     Neighbourhood != null &&
                     Neighbourhood.Equals(other.Neighbourhood)
                 ) &&
                 (
                     County == other.County ||
                     County != null &&
                     County.Equals(other.County)
                 ) &&
                 (
                     Macroregion == other.Macroregion ||
                     Macroregion != null &&
                     Macroregion.Equals(other.Macroregion)
                 ) &&
                 (
                     City == other.City ||
                     City != null &&
                     City.Equals(other.City)
                 ) &&
                 (
                     Country == other.Country ||
                     Country != null &&
                     Country.Equals(other.Country)
                 ) &&
                 (
                     CountryCode == other.CountryCode ||
                     CountryCode != null &&
                     CountryCode.Equals(other.CountryCode)
                 ) &&
                 (
                     Continent == other.Continent ||
                     Continent != null &&
                     Continent.Equals(other.Continent)
                 ) &&
                 (
                     Postcode == other.Postcode ||
                     Postcode != null &&
                     Postcode.Equals(other.Postcode)
                 ) &&
                 (
                     Features == other.Features ||
                     Features != null &&
                     Features.Equals(other.Features)
                 ));
        }