Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return(FirstName.GetHashCode() ^
            MiddleName.GetHashCode() ^
            FamilyName.GetHashCode() ^
            Town.GetHashCode() ^
            Number.GetHashCode());
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            var hash = FamilyName.GetHashCode();

            hash = hash * 31 + (int)Style;
            hash = hash * 31 + (int)Weight;

            return(hash);
        }
        public override int GetHashCode()
        {
            int hashCode = -738294962;

            if (GivenName != null)
            {
                hashCode += GivenName.GetHashCode();
            }

            if (FamilyName != null)
            {
                hashCode += FamilyName.GetHashCode();
            }

            if (CompanyName != null)
            {
                hashCode += CompanyName.GetHashCode();
            }

            if (Nickname != null)
            {
                hashCode += Nickname.GetHashCode();
            }

            if (EmailAddress != null)
            {
                hashCode += EmailAddress.GetHashCode();
            }

            if (Address != null)
            {
                hashCode += Address.GetHashCode();
            }

            if (PhoneNumber != null)
            {
                hashCode += PhoneNumber.GetHashCode();
            }

            if (ReferenceId != null)
            {
                hashCode += ReferenceId.GetHashCode();
            }

            if (Note != null)
            {
                hashCode += Note.GetHashCode();
            }

            if (Birthday != null)
            {
                hashCode += Birthday.GetHashCode();
            }

            return(hashCode);
        }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FamilyName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Birthname?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (int)PersonGender;
         return(hashCode);
     }
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FamilyName.GetHashCode();
         hashCode = (hashCode * 397) ^ Size.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Style;
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            unchecked
            {
                const int hashBase   = (int)2166136261;
                const int multiplier = 16777619;

                int hash = hashBase;
                hash = (hash * multiplier) ^ Uln.GetHashCode();
                hash = (hash * multiplier) ^ (Standard is null ? 0 : Standard.GetHashCode());
                hash = (hash * multiplier) ^ (FamilyName is null ? 0 : FamilyName.GetHashCode());
                hash = (hash * multiplier) ^ (CertificateReference is null ? 0 : CertificateReference.GetHashCode());

                return(hash);
            }
        }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Gender;
         hashCode = (hashCode * 397) ^ (FamilyName != null ? FamilyName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Languages != null ? Languages.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Qualifications != null ? Qualifications.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TelefoneNumbers != null ? TelefoneNumbers.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ID.GetHashCode();
         hashCode = (hashCode * 397) ^ (Offices != null ? Offices.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (KVNWebsite != null ? KVNWebsite.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = 1383071021;

            if (CustomerId != null)
            {
                hashCode += CustomerId.GetHashCode();
            }

            if (GivenName != null)
            {
                hashCode += GivenName.GetHashCode();
            }

            if (FamilyName != null)
            {
                hashCode += FamilyName.GetHashCode();
            }

            if (EmailAddress != null)
            {
                hashCode += EmailAddress.GetHashCode();
            }

            if (Address != null)
            {
                hashCode += Address.GetHashCode();
            }

            if (PhoneNumber != null)
            {
                hashCode += PhoneNumber.GetHashCode();
            }

            if (CompanyName != null)
            {
                hashCode += CompanyName.GetHashCode();
            }

            return(hashCode);
        }
Exemplo n.º 9
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (RowKey.Length != 0)
                    {
                        hash ^= RowKey.GetHashCode();
                    }
                    if (FamilyName.Length != 0)
                    {
                        hash ^= FamilyName.GetHashCode();
                    }
                    if (Qualifier.Length != 0)
                    {
                        hash ^= Qualifier.GetHashCode();
                    }
                    if (TimestampMicros != 0L)
                    {
                        hash ^= TimestampMicros.GetHashCode();
                    }
                    if (Value.Length != 0)
                    {
                        hash ^= Value.GetHashCode();
                    }
                    if (Label.Length != 0)
                    {
                        hash ^= Label.GetHashCode();
                    }
                    if (Error != false)
                    {
                        hash ^= Error.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
        public override int GetHashCode()
        {
            int hash = 1;

            if (BatcherPublicKey.Length != 0)
            {
                hash ^= BatcherPublicKey.GetHashCode();
            }
            hash ^= dependencies_.GetHashCode();
            if (FamilyName.Length != 0)
            {
                hash ^= FamilyName.GetHashCode();
            }
            if (FamilyVersion.Length != 0)
            {
                hash ^= FamilyVersion.GetHashCode();
            }
            hash ^= inputs_.GetHashCode();
            if (Nonce.Length != 0)
            {
                hash ^= Nonce.GetHashCode();
            }
            hash ^= outputs_.GetHashCode();
            if (PayloadSha512.Length != 0)
            {
                hash ^= PayloadSha512.GetHashCode();
            }
            if (SignerPublicKey.Length != 0)
            {
                hash ^= SignerPublicKey.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 11
0
 public override int GetHashCode()
 {
     return(FamilyName.GetHashCode());
 }
Exemplo n.º 12
0
        public override int GetHashCode()
        {
            int hashCode = -1084182002;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (ReferenceId != null)
            {
                hashCode += ReferenceId.GetHashCode();
            }

            if (IsOwner != null)
            {
                hashCode += IsOwner.GetHashCode();
            }

            if (Status != null)
            {
                hashCode += Status.GetHashCode();
            }

            if (GivenName != null)
            {
                hashCode += GivenName.GetHashCode();
            }

            if (FamilyName != null)
            {
                hashCode += FamilyName.GetHashCode();
            }

            if (EmailAddress != null)
            {
                hashCode += EmailAddress.GetHashCode();
            }

            if (PhoneNumber != null)
            {
                hashCode += PhoneNumber.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (AssignedLocations != null)
            {
                hashCode += AssignedLocations.GetHashCode();
            }

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (IataId.Length != 0)
            {
                hash ^= IataId.GetHashCode();
            }
            if (CommissionType != 0)
            {
                hash ^= CommissionType.GetHashCode();
            }
            if (commissionAmount_ != null)
            {
                hash ^= CommissionAmount.GetHashCode();
            }
            if (commissionPercentage_ != null)
            {
                hash ^= CommissionPercentage.GetHashCode();
            }
            if (GivenName.Length != 0)
            {
                hash ^= GivenName.GetHashCode();
            }
            if (FamilyName.Length != 0)
            {
                hash ^= FamilyName.GetHashCode();
            }
            if (BusinessAddress1.Length != 0)
            {
                hash ^= BusinessAddress1.GetHashCode();
            }
            if (BusinessAddress2.Length != 0)
            {
                hash ^= BusinessAddress2.GetHashCode();
            }
            if (BusinessCity.Length != 0)
            {
                hash ^= BusinessCity.GetHashCode();
            }
            if (BusinessState.Length != 0)
            {
                hash ^= BusinessState.GetHashCode();
            }
            if (BusinessZip.Length != 0)
            {
                hash ^= BusinessZip.GetHashCode();
            }
            if (BusinessNation.Length != 0)
            {
                hash ^= BusinessNation.GetHashCode();
            }
            if (BusinessPhoneNumber.Length != 0)
            {
                hash ^= BusinessPhoneNumber.GetHashCode();
            }
            if (BusinessFaxNumber.Length != 0)
            {
                hash ^= BusinessFaxNumber.GetHashCode();
            }
            if (BusinessEmailAddress.Length != 0)
            {
                hash ^= BusinessEmailAddress.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 14
0
 public override int GetHashCode()
 {
     return(FamilyName.GetHashCode(StringComparison.CurrentCultureIgnoreCase));
 }
Exemplo n.º 15
0
 public override int GetHashCode()
 {
     return(FamilyName.GetHashCode() ^ Size.GetHashCode() ^ Weight.GetHashCode());
 }
Exemplo n.º 16
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 (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (GivenName != null)
         {
             hashCode = hashCode * 59 + GivenName.GetHashCode();
         }
         if (FamilyName != null)
         {
             hashCode = hashCode * 59 + FamilyName.GetHashCode();
         }
         if (MiddleName != null)
         {
             hashCode = hashCode * 59 + MiddleName.GetHashCode();
         }
         if (Href != null)
         {
             hashCode = hashCode * 59 + Href.GetHashCode();
         }
         if (Gender != null)
         {
             hashCode = hashCode * 59 + Gender.GetHashCode();
         }
         if (PlaceOfBirth != null)
         {
             hashCode = hashCode * 59 + PlaceOfBirth.GetHashCode();
         }
         if (CountryOfBirth != null)
         {
             hashCode = hashCode * 59 + CountryOfBirth.GetHashCode();
         }
         if (Nationality != null)
         {
             hashCode = hashCode * 59 + Nationality.GetHashCode();
         }
         if (MaritalStatus != null)
         {
             hashCode = hashCode * 59 + MaritalStatus.GetHashCode();
         }
         if (BirthDate != null)
         {
             hashCode = hashCode * 59 + BirthDate.GetHashCode();
         }
         if (FullName != null)
         {
             hashCode = hashCode * 59 + FullName.GetHashCode();
         }
         if (FormattedName != null)
         {
             hashCode = hashCode * 59 + FormattedName.GetHashCode();
         }
         if (Location != null)
         {
             hashCode = hashCode * 59 + Location.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 17
0
 public override int GetHashCode()
 {
     // Using CurrentCultureIgnoreCase since this is used with FamilyName
     return(FamilyName.GetHashCode(StringComparison.CurrentCultureIgnoreCase));
 }
Exemplo n.º 18
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Eto.Drawing.Font"/> object.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.</returns>
 public override int GetHashCode()
 {
     return(FamilyName.GetHashCode() ^ Platform.GetHashCode() ^ Size.GetHashCode() ^ FontStyle.GetHashCode());
 }
Exemplo n.º 19
0
 public override int GetHashCode()
 {
     unchecked {
         return((FamilyName.GetHashCode() * 397) ^ (GivenNames != null ? GivenNames.GetHashCode() : 0));
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (GivenName.Length != 0)
            {
                hash ^= GivenName.GetHashCode();
            }
            if (GivenName2.Length != 0)
            {
                hash ^= GivenName2.GetHashCode();
            }
            if (FamilyName.Length != 0)
            {
                hash ^= FamilyName.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (HomePhone.Length != 0)
            {
                hash ^= HomePhone.GetHashCode();
            }
            if (MobilePhone.Length != 0)
            {
                hash ^= MobilePhone.GetHashCode();
            }
            if (FaxNumber.Length != 0)
            {
                hash ^= FaxNumber.GetHashCode();
            }
            if (OfficePhone.Length != 0)
            {
                hash ^= OfficePhone.GetHashCode();
            }
            if (OfficeAddress1.Length != 0)
            {
                hash ^= OfficeAddress1.GetHashCode();
            }
            if (OfficeAddress2.Length != 0)
            {
                hash ^= OfficeAddress2.GetHashCode();
            }
            if (OfficeCity.Length != 0)
            {
                hash ^= OfficeCity.GetHashCode();
            }
            if (OfficeState.Length != 0)
            {
                hash ^= OfficeState.GetHashCode();
            }
            if (OfficeZip.Length != 0)
            {
                hash ^= OfficeZip.GetHashCode();
            }
            if (OfficeNation.Length != 0)
            {
                hash ^= OfficeNation.GetHashCode();
            }
            if (HomeAddress1.Length != 0)
            {
                hash ^= HomeAddress1.GetHashCode();
            }
            if (HomeAddress2.Length != 0)
            {
                hash ^= HomeAddress2.GetHashCode();
            }
            if (HomeCity.Length != 0)
            {
                hash ^= HomeCity.GetHashCode();
            }
            if (HomeState.Length != 0)
            {
                hash ^= HomeState.GetHashCode();
            }
            if (HomeZip.Length != 0)
            {
                hash ^= HomeZip.GetHashCode();
            }
            if (HomeNation.Length != 0)
            {
                hash ^= HomeNation.GetHashCode();
            }
            if (CompanyName.Length != 0)
            {
                hash ^= CompanyName.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 21
0
 /// <summary>
 /// Serves as a hash function for a <see cref="Eto.Drawing.Font"/> object.
 /// </summary>
 /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.</returns>
 public override int GetHashCode()
 {
     return(FamilyName.GetHashCode() ^ Generator.GetHashCode() ^ Size.GetHashCode() ^ FontStyle.GetHashCode());
 }
Exemplo n.º 22
0
        public override int GetHashCode()
        {
            int hashCode = 749289117;

            if (Id != null)
            {
                hashCode += Id.GetHashCode();
            }

            if (CreatedAt != null)
            {
                hashCode += CreatedAt.GetHashCode();
            }

            if (UpdatedAt != null)
            {
                hashCode += UpdatedAt.GetHashCode();
            }

            if (Cards != null)
            {
                hashCode += Cards.GetHashCode();
            }

            if (GivenName != null)
            {
                hashCode += GivenName.GetHashCode();
            }

            if (FamilyName != null)
            {
                hashCode += FamilyName.GetHashCode();
            }

            if (Nickname != null)
            {
                hashCode += Nickname.GetHashCode();
            }

            if (CompanyName != null)
            {
                hashCode += CompanyName.GetHashCode();
            }

            if (EmailAddress != null)
            {
                hashCode += EmailAddress.GetHashCode();
            }

            if (Address != null)
            {
                hashCode += Address.GetHashCode();
            }

            if (PhoneNumber != null)
            {
                hashCode += PhoneNumber.GetHashCode();
            }

            if (Birthday != null)
            {
                hashCode += Birthday.GetHashCode();
            }

            if (ReferenceId != null)
            {
                hashCode += ReferenceId.GetHashCode();
            }

            if (Note != null)
            {
                hashCode += Note.GetHashCode();
            }

            if (Preferences != null)
            {
                hashCode += Preferences.GetHashCode();
            }

            if (Groups != null)
            {
                hashCode += Groups.GetHashCode();
            }

            if (CreationSource != null)
            {
                hashCode += CreationSource.GetHashCode();
            }

            if (GroupIds != null)
            {
                hashCode += GroupIds.GetHashCode();
            }

            if (SegmentIds != null)
            {
                hashCode += SegmentIds.GetHashCode();
            }

            return(hashCode);
        }
Exemplo n.º 23
0
 public override int GetHashCode()
 {
     return(FamilyName != null ? FamilyName.GetHashCode() : 0);
 }