Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.Time)
            {
                hash ^= Time.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Charges)
            {
                hash ^= Charges.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Profession)
            {
                hash ^= Profession.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Permanent)
            {
                hash ^= Permanent.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Challenge)
            {
                hash ^= Challenge.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 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);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (YearBorn != 0)
            {
                hash ^= YearBorn.GetHashCode();
            }
            if (Country.Length != 0)
            {
                hash ^= Country.GetHashCode();
            }
            if (Marketing != false)
            {
                hash ^= Marketing.GetHashCode();
            }
            if (Termsagreed != false)
            {
                hash ^= Termsagreed.GetHashCode();
            }
            if (Company.Length != 0)
            {
                hash ^= Company.GetHashCode();
            }
            if (Profession.Length != 0)
            {
                hash ^= Profession.GetHashCode();
            }
            if (JoinDate != 0L)
            {
                hash ^= JoinDate.GetHashCode();
            }
            if (EmailValidated != false)
            {
                hash ^= EmailValidated.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (typeCase_ == TypeOneofCase.VaultItem)
            {
                hash ^= VaultItem.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.Profession)
            {
                hash ^= Profession.GetHashCode();
            }
            if (typeCase_ == TypeOneofCase.MapAbility)
            {
                hash ^= MapAbility.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #5
0
 public override int GetHashCode()
 {
     return(Education.GetHashCode() ^ Profession.GetHashCode() ^ Occupation.GetHashCode());
 }