Exemplo n.º 1
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);
        }