示例#1
0
        public override int GetHashCode()
        {
            int result = 1;

            result = (result * 397) ^ (AltEmailAddress != null ? AltEmailAddress.GetHashCode() : 0);
            result = (result * 397) ^ (AltTelephoneContact != null ? AltTelephoneContact.GetHashCode() : 0);
            result = (result * 397) ^ (CreatedOn != null ? CreatedOn.GetHashCode() : 0);
            result = (result * 397) ^ (DateOfBirth != null ? DateOfBirth.GetHashCode() : 0);
            result = (result * 397) ^ (EmailAddress != null ? EmailAddress.GetHashCode() : 0);
            result = (result * 397) ^ (Gender != null ? Gender.GetHashCode() : 0);
            result = (result * 397) ^ (GivenName != null ? GivenName.GetHashCode() : 0);
            result = (result * 397) ^ (HomeLanguage != null ? HomeLanguage.GetHashCode() : 0);
            result = (result * 397) ^ Id.GetHashCode();
            result = (result * 397) ^ (LastModified != null ? LastModified.GetHashCode() : 0);
            result = (result * 397) ^ (MaritalStatus != null ? MaritalStatus.GetHashCode() : 0);
            result = (result * 397) ^ (NextOfKinAddress != null ? NextOfKinAddress.GetHashCode() : 0);
            result = (result * 397) ^ (NextOfKinContact != null ? NextOfKinContact.GetHashCode() : 0);
            result = (result * 397) ^ (NextOfKinName != null ? NextOfKinName.GetHashCode() : 0);
            result = (result * 397) ^ (NextOfKinRelationship != null ? NextOfKinRelationship.GetHashCode() : 0);
            result = (result * 397) ^ (Occupation != null ? Occupation.GetHashCode() : 0);
            result = (result * 397) ^ (Organisation != null ? Organisation.GetHashCode() : 0);
            result = (result * 397) ^ (OtherName != null ? OtherName.GetHashCode() : 0);
            result = (result * 397) ^ (PermentAddress != null ? PermentAddress.GetHashCode() : 0);
            result = (result * 397) ^ (PersonOwnerType != null ? PersonOwnerType.GetHashCode() : 0);
            result = (result * 397) ^ (PlaceOfBirth != null ? PlaceOfBirth.GetHashCode() : 0);
            result = (result * 397) ^ (PostalAddress != null ? PostalAddress.GetHashCode() : 0);
            result = (result * 397) ^ (PreferredLanguage != null ? PreferredLanguage.GetHashCode() : 0);
            result = (result * 397) ^ (ProfilePhotoName != null ? ProfilePhotoName.GetHashCode() : 0);
            result = (result * 397) ^ (Religion != null ? Religion.GetHashCode() : 0);
            result = (result * 397) ^ (Surname != null ? Surname.GetHashCode() : 0);
            result = (result * 397) ^ (TelephoneContact != null ? TelephoneContact.GetHashCode() : 0);
            result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0);
            result = (result * 397) ^ (WebsiteUrl != null ? WebsiteUrl.GetHashCode() : 0);
            return(result);
        }
        /// <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 (Title != null)
                {
                    hashCode = hashCode * 59 + Title.GetHashCode();
                }
                if (Forenames != null)
                {
                    hashCode = hashCode * 59 + Forenames.GetHashCode();
                }
                if (Surname != null)
                {
                    hashCode = hashCode * 59 + Surname.GetHashCode();
                }
                if (MiddleInitials != null)
                {
                    hashCode = hashCode * 59 + MiddleInitials.GetHashCode();
                }
                if (KnownAs != null)
                {
                    hashCode = hashCode * 59 + KnownAs.GetHashCode();
                }

                hashCode = hashCode * 59 + Gender.GetHashCode();
                if (DateOfBirth != null)
                {
                    hashCode = hashCode * 59 + DateOfBirth.GetHashCode();
                }
                return(hashCode);
            }
        }
示例#3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Phone.Length != 0)
            {
                hash ^= Phone.GetHashCode();
            }
            if (Age != 0)
            {
                hash ^= Age.GetHashCode();
            }
            if (Gender != false)
            {
                hash ^= Gender.GetHashCode();
            }
            if (AnnualIncome != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AnnualIncome);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (EmployeeId != 0)
            {
                hash ^= EmployeeId.GetHashCode();
            }
            if (Surname.Length != 0)
            {
                hash ^= Surname.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Gender.Length != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (DepartmentId != 0)
            {
                hash ^= DepartmentId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#5
0
        public override int GetHashCode()
        {
            int num = 1;

            if (God != 0)
            {
                num ^= God.GetHashCode();
            }
            if (Gender != 0)
            {
                num ^= Gender.GetHashCode();
            }
            if (WeaponId != 0)
            {
                num ^= WeaponId.GetHashCode();
            }
            if (Skin != 0)
            {
                num ^= Skin.GetHashCode();
            }
            if (_unknownFields != null)
            {
                num ^= ((object)_unknownFields).GetHashCode();
            }
            return(num);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Costume != 0)
            {
                hash ^= Costume.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Shiny != false)
            {
                hash ^= Shiny.GetHashCode();
            }
            if (Form != 0)
            {
                hash ^= Form.GetHashCode();
            }
            if (WeatherBoostedCondition != 0)
            {
                hash ^= WeatherBoostedCondition.GetHashCode();
            }
            return(hash);
        }
示例#7
0
文件: Tellist.cs 项目: code1w/tomnet
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Age != 0)
            {
                hash ^= Age.GetHashCode();
            }
            if (Gender != global::Tom.gender_type.Male)
            {
                hash ^= Gender.GetHashCode();
            }
            if (PhoneNum != 0UL)
            {
                hash ^= PhoneNum.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Gender.Length != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Age != 0)
            {
                hash ^= Age.GetHashCode();
            }
            if (ID.Length != 0)
            {
                hash ^= ID.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#9
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            hashcode = (hashcode * 397) + IdAlbum.GetHashCode();
            if (__isset.title)
            {
                hashcode = (hashcode * 397) + Title.GetHashCode();
            }
            if (__isset.coverPath)
            {
                hashcode = (hashcode * 397) + CoverPath.GetHashCode();
            }
            if (__isset.releaseDate)
            {
                hashcode = (hashcode * 397) + ReleaseDate.GetHashCode();
            }
            if (__isset.gender)
            {
                hashcode = (hashcode * 397) + Gender.GetHashCode();
            }
            if (__isset.isSingle)
            {
                hashcode = (hashcode * 397) + IsSingle.GetHashCode();
            }
        }
        return(hashcode);
    }
示例#10
0
        public override int GetHashCode()
        {
            unchecked {
                int a = ThingDef != null?ThingDef.GetHashCode() : 0;

                return((31 * a) * 31 + Gender.GetHashCode());
            }
        }
示例#11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TrainerBaseId != 0UL)
            {
                hash ^= TrainerBaseId.GetHashCode();
            }
            if (ActorId.Length != 0)
            {
                hash ^= ActorId.GetHashCode();
            }
            if (TrainerNameId.Length != 0)
            {
                hash ^= TrainerNameId.GetHashCode();
            }
            if (U4 != 0)
            {
                hash ^= U4.GetHashCode();
            }
            if (U5.Length != 0)
            {
                hash ^= U5.GetHashCode();
            }
            if (U6 != 0)
            {
                hash ^= U6.GetHashCode();
            }
            if (U7 != 0)
            {
                hash ^= U7.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (PokeballId.Length != 0)
            {
                hash ^= PokeballId.GetHashCode();
            }
            if (IsGeneric != 0)
            {
                hash ^= IsGeneric.GetHashCode();
            }
            if (BattleBgmId.Length != 0)
            {
                hash ^= BattleBgmId.GetHashCode();
            }
            if (ResultBgmId.Length != 0)
            {
                hash ^= ResultBgmId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <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 (Uuid != null)
         {
             hashCode = hashCode * 59 + Uuid.GetHashCode();
         }
         if (Active != null)
         {
             hashCode = hashCode * 59 + Active.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Gender != null)
         {
             hashCode = hashCode * 59 + Gender.GetHashCode();
         }
         if (BirthDate != null)
         {
             hashCode = hashCode * 59 + BirthDate.GetHashCode();
         }
         if (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (Qualification != null)
         {
             hashCode = hashCode * 59 + Qualification.GetHashCode();
         }
         if (Telecom != null)
         {
             hashCode = hashCode * 59 + Telecom.GetHashCode();
         }
         if (Photo != null)
         {
             hashCode = hashCode * 59 + Photo.GetHashCode();
         }
         if (Cost != null)
         {
             hashCode = hashCode * 59 + Cost.GetHashCode();
         }
         if (Creation != null)
         {
             hashCode = hashCode * 59 + Creation.GetHashCode();
         }
         if (LastUpdated != null)
         {
             hashCode = hashCode * 59 + LastUpdated.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            var hash = FirstName == null ? 0 : FirstName.GetHashCode();

            hash += LastName == null ? 0 : LastName.GetHashCode();
            hash += Birthday.GetHashCode();
            hash += Gender.GetHashCode();
            hash += Type.GetHashCode();
            return(hash);
        }
示例#14
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Name is not null ? Name.GetHashCode() : 0);
         result = (result * 397) ^ Age;
         result = (result * 397) ^ (Gender is not null ? Gender.GetHashCode() : 0);
         return(result);
     }
 }
        public override int GetHashCode()
        {
            unchecked {
                int a = thingDef != null?thingDef.GetHashCode() : 0;

                int b = stuffDef != null?stuffDef.GetHashCode() : 0;

                return((31 * a + b) * 31 + gender.GetHashCode());
            }
        }
示例#16
0
 protected override int GetHashCodeCore()
 {
     unchecked
     {
         int hashCode = FirstName.GetHashCode();
         hashCode = (hashCode * 397) ^ LastName.GetHashCode();
         hashCode = (hashCode * 397) ^ Gender.GetHashCode();
         hashCode = (hashCode * 397) ^ Dob.GetHashCode();
         return(hashCode);
     }
 }
示例#17
0
文件: Person.cs 项目: x64/bltoolkit
 public override int GetHashCode()
 {
     unchecked
     {
         var result = ID;
         result = (result * 397) ^ (LastName != null ? LastName.GetHashCode()   : 0);
         result = (result * 397) ^ (MiddleName != null ? MiddleName.GetHashCode() : 0);
         result = (result * 397) ^ Gender.GetHashCode();
         result = (result * 397) ^ (FirstName != null ? FirstName.GetHashCode()  : 0);
         return(result);
     }
 }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Gender?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Name?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Surname?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DisplayName?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Email?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Provider?.GetHashCode() ?? 0);
            return(hashCode);
        }
示例#19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Surname.Length != 0)
            {
                hash ^= Surname.GetHashCode();
            }
            if (Forename.Length != 0)
            {
                hash ^= Forename.GetHashCode();
            }
            hash ^= otherNames_.GetHashCode();
            if (Salutation.Length != 0)
            {
                hash ^= Salutation.GetHashCode();
            }
            if (Suffix.Length != 0)
            {
                hash ^= Suffix.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (Gender != global::PKIo.Gender.NotKnown)
            {
                hash ^= Gender.GetHashCode();
            }
            if (dateOfBirth_ != null)
            {
                hash ^= DateOfBirth.GetHashCode();
            }
            if (EmailAddress.Length != 0)
            {
                hash ^= EmailAddress.GetHashCode();
            }
            if (MobileNumber.Length != 0)
            {
                hash ^= MobileNumber.GetHashCode();
            }
            if (ExternalId.Length != 0)
            {
                hash ^= ExternalId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#20
0
 public virtual int GetHashCodeWithMembers()
 {
     unchecked
     {
         var hashCode = 397;
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (WorkArea?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Age.GetHashCode();
         hashCode = (hashCode * 397) ^ Gender.GetHashCode();
         hashCode = (hashCode * 397) ^ (MainUse?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Price.GetHashCode();
         return(hashCode);
     }
 }
示例#21
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            return(hash);
        }
示例#22
0
        //MUST ALL BE SET
        public override int GetHashCode()
        {
            int hashCode = 821027007;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FirstName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(LastName);

            hashCode = hashCode * -1521134295 + Gender.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StaffId);

            hashCode = hashCode * -1521134295 + Salary.GetHashCode();
            return(hashCode);
        }
示例#23
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Height != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Height);
            }
            if (Weight != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Weight);
            }
            if (Avator.Length != 0)
            {
                hash ^= Avator.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (EmailVerified != false)
            {
                hash ^= EmailVerified.GetHashCode();
            }
            hash ^= phoneNumber_.GetHashCode();
            if (Gender != global::My.Project.Gender.NotSpecified)
            {
                hash ^= Gender.GetHashCode();
            }
            if (birthday_ != null)
            {
                hash ^= Birthday.GetHashCode();
            }
            hash ^= addresses_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#24
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = GetType().ToString().GetHashCode();
                hash = (hash * 16777619) ^ Name.GetHashCode();
                hash = (hash * 16777619) ^ Gender.GetHashCode();

                if (Birth.Date != null)
                {
                    hash = (hash * 16777619) ^ Birth.Date.GetHashCode();
                }

                return(hash);
            }
        }
示例#25
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode     = 13;
         var nameHashCode = !string.IsNullOrEmpty(Name) ? Name.GetHashCode() : 0;
         hashCode = (hashCode * 397) ^ nameHashCode;
         //var idHashCode = ReferenceEquals(null, Id) ? 0 : Id.GetHashCode();
         //hashCode = (hashCode * 397) ^ idHashCode;
         var genderHashCode = !string.IsNullOrEmpty(Gender) ? Gender.GetHashCode() : 0;
         hashCode = (hashCode * 397) ^ genderHashCode;
         //var ssmlGenderHashCode = ReferenceEquals(null, Id) ? 0 : SsmlGender.GetHashCode();
         //hashCode = (hashCode * 397) ^ ssmlGenderHashCode;
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = (Id != null ? Id.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Phone != null ? Phone.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Mobile != null ? Mobile.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Gender != null ? Gender.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Surname != null ? Surname.GetHashCode() : 0);

                return(hashCode);
            }
        }
示例#27
0
        public override int GetHashCode()
        {
            int hashcode = Vav.GetHashCode() * 17;

            hashcode += Subordination.GetHashCode() * 17;
            hashcode += PrepositionChars.GetHashCode() * 17;
            hashcode += DefiniteArticle.GetHashCode() * 17;
            hashcode += PartOfSpeech.GetHashCode() * 17;
            hashcode += Gender.GetHashCode() * 17;
            hashcode += Plural.GetHashCode() * 17;
            hashcode += Person.GetHashCode() * 17;
            hashcode += ConstructState.GetHashCode() * 17;
            hashcode += OwnershipGender.GetHashCode() * 17;
            hashcode += OwnershipPlural.GetHashCode() * 17;
            hashcode += OwnershipPerson.GetHashCode() * 17;
            return(hashcode);
        }
示例#28
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = base.GetHashCode();
         result = (result * 397) ^ EmailAddresses.GetCollectionHashCode();
         result = (result * 397) ^ PhoneNumbers.GetCollectionHashCode();
         result = (result * 397) ^ Gender.GetHashCode();
         result = (result * 397) ^ (DateOfBirth.HasValue ? DateOfBirth.Value.GetHashCode() : 0);
         result = (result * 397) ^ (Address != null ? Address.GetHashCode() : 0);
         result = (result * 397) ^ (PhotoId.HasValue ? PhotoId.Value.GetHashCode() : 0);
         result = (result * 397) ^ (VisibilitySettings != null ? VisibilitySettings.GetHashCode() : 0);
         result = (result * 397) ^ EthnicStatus.GetHashCode();
         result = (result * 397) ^ (AffiliateId.HasValue ? AffiliateId.Value.GetHashCode() : 0);
         return(result);
     }
 }
示例#29
0
文件: CS2BS.g.cs 项目: niuniuzhu/KOW
        public override int GetHashCode()
        {
            int hash = 1;

            if (GcNID != 0UL)
            {
                hash ^= GcNID.GetHashCode();
            }
            if (ActorID != 0)
            {
                hash ^= ActorID.GetHashCode();
            }
            if (Nickname.Length != 0)
            {
                hash ^= Nickname.GetHashCode();
            }
            if (Avatar.Length != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Money != 0)
            {
                hash ^= Money.GetHashCode();
            }
            if (Diamoned != 0)
            {
                hash ^= Diamoned.GetHashCode();
            }
            if (Rank != 0)
            {
                hash ^= Rank.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#30
0
        public override int GetHashCode()
        {
            int hashCode = 1327366762;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Surname);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Phone);

            hashCode = hashCode * -1521134295 + Gender.GetHashCode();
            hashCode = hashCode * -1521134295 + Birthday.GetHashCode();
            hashCode = hashCode * -1521134295 + Age.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FullName);

            return(hashCode);
        }