/// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       DistanceKM.GetHashCode() * 11 ^

                       (SearchCenter.HasValue
                            ? SearchCenter.GetHashCode() * 5
                            : 0) ^

                       (!EVSEStatusFilter.HasValue
                            ? EVSEStatusFilter.GetHashCode()
                            : 0));
            }
        }
示例#2
0
        /// <summary>
        /// Return the HashCode of this object.
        /// </summary>
        /// <returns>The HashCode of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(ProviderId.GetHashCode() * 17 ^
                       DistanceKM.GetHashCode() * 13 ^
                       GeoCoordinatesResponseFormat.GetHashCode() * 11 ^

                       (SearchCenter.HasValue
                            ? SearchCenter.GetHashCode() * 7
                            : 0) ^

                       (!LastCall.HasValue
                            ? LastCall.GetHashCode() * 5
                            : 0));
            }
        }