public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } hash ^= ActivityTypeStatus.GetHashCode(); hash ^= ActivityIsOpenOrTime.GetHashCode(); return(hash); }