Esempio n. 1
0
        /// <summary>
        /// Gets the hash code for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int hashCode = 0;

            hashCode ^= DestinationAddress.GetHashCode();
            hashCode ^= DestinationAddressNpi.GetHashCode();
            hashCode ^= DestinationAddressTon.GetHashCode();
            hashCode ^= ErrorStatusCode.GetHashCode();

            return(hashCode);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the hash code for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (!IsDistributionList)
            {
                hashCode ^= DestAddress.GetHashCode();
                hashCode ^= DestinationAddressNpi.GetHashCode();
                hashCode ^= DestinationAddressTon.GetHashCode();
            }
            else
            {
                hashCode ^= DistributionList.GetHashCode();
            }

            return(hashCode);
        }