public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } hash ^= ActivityTypeStatus.GetHashCode(); hash ^= ActivityIsOpenOrTime.GetHashCode(); return(hash); }
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); }