public override int GetHashCode()
 {
     unchecked
     {
         int hash = 23;
         hash = hash * 31 + User1.GetHashCode();
         hash = hash * 31 + User2.GetHashCode();
         return(hash);
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LatestUpdate != 0UL)
            {
                hash ^= LatestUpdate.GetHashCode();
            }
            if (User1 != 0UL)
            {
                hash ^= User1.GetHashCode();
            }
            if (User2 != 0UL)
            {
                hash ^= User2.GetHashCode();
            }
            hash ^= messages_.GetHashCode();
            return(hash);
        }