Beispiel #1
0
 /// <summary>
 /// Generates a hashcode of the entry.
 /// </summary>
 /// <returns>Generated hashcode.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (DestAddress != null ? DestAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OutPort.GetHashCode();
         return hashCode;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Generates a hashcode of the entry.
 /// </summary>
 /// <returns>Generated hashcode.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = 1;
         hashCode = (hashCode * 397) ^ (DestAddress != null ? DestAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ FEC;
         return(hashCode);
     }
 }
Beispiel #3
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);
        }