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

            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Mobilephone.Length != 0)
            {
                hash ^= Mobilephone.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Sex != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (Pwd.Length != 0)
            {
                hash ^= Pwd.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked {
         const int randomPrime = 397;
         int       hashCode    = Id.GetHashCode();
         hashCode = (hashCode * randomPrime) ^ SourceTypeID.GetHashCode();
         hashCode = (hashCode * randomPrime) ^ SourceId.GetHashCode();
         hashCode = (hashCode * randomPrime) ^ (Name_Latin != null ? Name_Latin.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (FamilyName_Latin != null ? FamilyName_Latin.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (Name_Cyrillic != null ? Name_Cyrillic.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (FamilyName_Cyrillic != null ? FamilyName_Cyrillic.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (Sex != null ? Sex.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (FatherName != null ? FatherName.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (DateOfBirth != null ? DateOfBirth.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (Citizenship != null ? Citizenship.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (PlaceOfBirthId != null ? PlaceOfBirthId.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (PlaceOfEmigrationId != null ? PlaceOfEmigrationId.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (PlaceOfLivingId != null ? PlaceOfLivingId.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (FatherId != null ? FatherId.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (MotherId != null ? MotherId.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (MaritalStatus != null ? MaritalStatus.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (PartnerId != null ? PartnerId.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (Profession != null ? Profession.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (Notice != null ? Notice.GetHashCode() : 0);
         hashCode = (hashCode * randomPrime) ^ (PhotoNumber != null ? PhotoNumber.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (HeadImgUrl.Length != 0)
            {
                hash ^= HeadImgUrl.GetHashCode();
            }
            if (Sex.Length != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (Gold != 0L)
            {
                hash ^= Gold.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Error != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (Nickname.Length != 0)
            {
                hash ^= Nickname.GetHashCode();
            }
            if (Sex != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (HeadId != 0)
            {
                hash ^= HeadId.GetHashCode();
            }
            if (Coin != 0)
            {
                hash ^= Coin.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RoleId != 0L)
            {
                hash ^= RoleId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (UserId != 0L)
            {
                hash ^= UserId.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (ServerName.Length != 0)
            {
                hash ^= ServerName.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Sex != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (HeadImgId != 0)
            {
                hash ^= HeadImgId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Sex != 0)
            {
                hash ^= Sex.GetHashCode();
            }
            if (Byte.Length != 0)
            {
                hash ^= Byte.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 7
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ResourceState != null)
         {
             hashCode = hashCode * 59 + ResourceState.GetHashCode();
         }
         if (Firstname != null)
         {
             hashCode = hashCode * 59 + Firstname.GetHashCode();
         }
         if (Lastname != null)
         {
             hashCode = hashCode * 59 + Lastname.GetHashCode();
         }
         if (ProfileMedium != null)
         {
             hashCode = hashCode * 59 + ProfileMedium.GetHashCode();
         }
         if (Profile != null)
         {
             hashCode = hashCode * 59 + Profile.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (State != null)
         {
             hashCode = hashCode * 59 + State.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (Sex != null)
         {
             hashCode = hashCode * 59 + Sex.GetHashCode();
         }
         if (Premium != null)
         {
             hashCode = hashCode * 59 + Premium.GetHashCode();
         }
         if (Summit != null)
         {
             hashCode = hashCode * 59 + Summit.GetHashCode();
         }
         if (CreatedAt != null)
         {
             hashCode = hashCode * 59 + CreatedAt.GetHashCode();
         }
         if (UpdatedAt != null)
         {
             hashCode = hashCode * 59 + UpdatedAt.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 8
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Id.Length != 0)
        {
            hash ^= Id.GetHashCode();
        }
        if (AgeYears != 0)
        {
            hash ^= AgeYears.GetHashCode();
        }
        if (AgeDays != 0)
        {
            hash ^= AgeDays.GetHashCode();
        }
        if (BirthDate != 0)
        {
            hash ^= BirthDate.GetHashCode();
        }
        if (AdmDate != 0)
        {
            hash ^= AdmDate.GetHashCode();
        }
        if (SepDate != 0)
        {
            hash ^= SepDate.GetHashCode();
        }
        if (LeaveDays != 0)
        {
            hash ^= LeaveDays.GetHashCode();
        }
        if (Sex.Length != 0)
        {
            hash ^= Sex.GetHashCode();
        }
        if (Adm.Length != 0)
        {
            hash ^= Adm.GetHashCode();
        }
        if (Sep.Length != 0)
        {
            hash ^= Sep.GetHashCode();
        }
        if (Gestage != 0)
        {
            hash ^= Gestage.GetHashCode();
        }
        if (Los != 0)
        {
            hash ^= Los.GetHashCode();
        }
        if (Hmv != 0)
        {
            hash ^= Hmv.GetHashCode();
        }
        if (Bh != false)
        {
            hash ^= Bh.GetHashCode();
        }
        hash ^= diagnoses_.GetHashCode();
        hash ^= procedures_.GetHashCode();
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Esempio n. 9
0
 public override int GetHashCode()
 {
     return(_name.GetHashCode() ^ _sex.GetHashCode() ^ _style.GetHashCode());
 }