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

            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            hash ^= ActivityTypeStatus.GetHashCode();
            hash ^= ActivityIsOpenOrTime.GetHashCode();
            return(hash);
        }
Ejemplo n.º 2
0
 public bool Equals(UserActivityExtraInfoPB other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (UserId != other.UserId)
     {
         return(false);
     }
     if (!ActivityTypeStatus.Equals(other.ActivityTypeStatus))
     {
         return(false);
     }
     if (!ActivityIsOpenOrTime.Equals(other.ActivityIsOpenOrTime))
     {
         return(false);
     }
     return(true);
 }