Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LeaseDuration != 0)
            {
                hash ^= LeaseDuration.GetHashCode();
            }
            if (AnnouncementPeriod != 0)
            {
                hash ^= AnnouncementPeriod.GetHashCode();
            }
            if (DomainIdGain != 0)
            {
                hash ^= DomainIdGain.GetHashCode();
            }
            if (PortBase != 0)
            {
                hash ^= PortBase.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the hash code for this object.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     return(Key.GetHashCode() ^ Queue.GetHashCode() ^ EnqueueTime.GetHashCode() ^ LeasedUntil.GetHashCode() ^ LeaseDuration.GetHashCode() ^ ExpirationTime.GetHashCode() ^ DequeueCount.GetHashCode() ^ Item.GetHashCode());
 }