public override int GetHashCode()
        {
            int hashCode = -1654316684;

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

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

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

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

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

            return(hashCode);
        }
示例#2
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);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return(((EmailAddress != null ? EmailAddress.GetHashCode() : 0) * 397) ^ (Password != null ? Password.GetHashCode() : 0));
     }
 }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (InvitationId != 0L)
            {
                hash ^= InvitationId.GetHashCode();
            }
            if (AccessRole != global::Google.Ads.GoogleAds.V8.Enums.AccessRoleEnum.Types.AccessRole.Unspecified)
            {
                hash ^= AccessRole.GetHashCode();
            }
            if (EmailAddress.Length != 0)
            {
                hash ^= EmailAddress.GetHashCode();
            }
            if (CreationDateTime.Length != 0)
            {
                hash ^= CreationDateTime.GetHashCode();
            }
            if (InvitationStatus != global::Google.Ads.GoogleAds.V8.Enums.AccessInvitationStatusEnum.Types.AccessInvitationStatus.Unspecified)
            {
                hash ^= InvitationStatus.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#5
0
            public void HashCodeDiffersByType()
            {
                var a = new EmailAddress("*****@*****.**");
                var b = new StringType("*****@*****.**");

                Assert.NotEqual(a.GetHashCode(), b.GetHashCode());
            }
示例#6
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(EmailAddress.GetHashCode() ^ (int)When);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (UserId != 0L)
            {
                hash ^= UserId.GetHashCode();
            }
            if (HasEmailAddress)
            {
                hash ^= EmailAddress.GetHashCode();
            }
            if (AccessRole != global::Google.Ads.GoogleAds.V6.Enums.AccessRoleEnum.Types.AccessRole.Unspecified)
            {
                hash ^= AccessRole.GetHashCode();
            }
            if (HasAccessCreationDateTime)
            {
                hash ^= AccessCreationDateTime.GetHashCode();
            }
            if (HasInviterUserEmailAddress)
            {
                hash ^= InviterUserEmailAddress.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FirstName.Length != 0)
            {
                hash ^= FirstName.GetHashCode();
            }
            if (LastName.Length != 0)
            {
                hash ^= LastName.GetHashCode();
            }
            if (EmailAddress.Length != 0)
            {
                hash ^= EmailAddress.GetHashCode();
            }
            if (IsAlive != false)
            {
                hash ^= IsAlive.GetHashCode();
            }
            if (Age != 0)
            {
                hash ^= Age.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#9
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Id * 397) ^ (EmailAddress?.GetHashCode() ?? 0));
     }
 }
        public void Two_PVO_of_the_same_content_are_equal()
        {
            var emailAddress1 = new EmailAddress("*****@*****.**");
            var emailAddress2 = new EmailAddress("*****@*****.**");

            emailAddress1.Equals(emailAddress2).Should().BeTrue();
            emailAddress1.GetHashCode().Equals(emailAddress2.GetHashCode()).Should().BeTrue();
        }
示例#11
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((EmailAddress != null ? EmailAddress.GetHashCode() : 0) * 397) ^
                (DisplayName != null ? DisplayName.GetHashCode() : 0));
     }
 }
示例#12
0
        public override int GetHashCode()
        {
            if (EmailAddress is null)
            {
                return(base.GetHashCode());
            }

            return(EmailAddress.GetHashCode() * 0x10000000);
        }
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = EmailAddress?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Data?.GetCollectionHashCode() ?? 0);
         return(hashCode);
     }
 }
示例#14
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = EmailAddress == null ? 0 : EmailAddress.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description == null ? 0 : Description.GetHashCode());
         hashCode = (hashCode * 397) ^ (Data == null ? 0 : Data.GetCollectionHashCode());
         return(hashCode);
     }
 }
        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);
        }
示例#16
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (name != null ? name.GetHashCode() : 0);
         result = (result * 397) ^ (emailAddress != null ? emailAddress.GetHashCode() : 0);
         result = (result * 397) ^ (phoneNumber != null ? phoneNumber.GetHashCode() : 0);
         return(result);
     }
 }
示例#17
0
 /// <summary>Serves as the default hash function. </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (FirstName != null ? FirstName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EmailAddress != null ? EmailAddress.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#18
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var result = (Name != null ? Name.GetHashCode() : 0);
         result = (result * 397) ^ (EffectiveDateRange != null ? EffectiveDateRange.GetHashCode() : 0);
         result = (result * 397) ^ (EmailAddress != null ? EmailAddress.GetHashCode() : 0);
         return(result);
     }
 }
 /// <summary>Serves as the default hash function. </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = FirstName.GetHashCode();
         hashCode = (hashCode * 397) ^ LastName.GetHashCode();
         hashCode = (hashCode * 397) ^ EmailAddress.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var result = 37;
         result *= 397 + Name?.GetHashCode() ?? 0;
         result *= 397 + EmailAddress?.GetHashCode() ?? 0;
         result *= 397 + PhoneNumber?.GetHashCode() ?? 0;
         result *= 397 + Address?.GetHashCode() ?? 0;
         return(result);
     }
 }
示例#21
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var result = (PatientGender != null ? PatientGender.GetHashCode() : 0);
         result = (result * 397) ^ (BirthDate.HasValue ? BirthDate.Value.GetHashCode() : 0);
         result = (result * 397) ^ (DeathDate.HasValue ? DeathDate.Value.GetHashCode() : 0);
         result = (result * 397) ^ (ContactPreference != null ? ContactPreference.GetHashCode() : 0);
         result = (result * 397) ^ (EmailAddress != null ? EmailAddress.GetHashCode() : 0);
         return(result);
     }
 }
示例#22
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (JobTitle != null ? JobTitle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EmailAddress != null ? EmailAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ManagerId.GetHashCode();
         return(hashCode);
     }
 }
示例#23
0
        public override int GetHashCode()
        {
            int hash = 2;

            hash *= 3 + ((PatreonName == null) ? 0 : PatreonName.GetHashCode());
            hash *= 5 + ((EmailAddress == null) ? 0 : EmailAddress.GetHashCode());
            hash *= 7 + Pledge.GetHashCode();
            hash *= 11 + ((ProducerName == null) ? 0 : ProducerName.GetHashCode());
            hash *= 13 + ((DiscordName == null) ? 0 : DiscordName.GetHashCode());
            hash *= 17 + ((MinecraftIGN == null) ? 0 : MinecraftIGN.GetHashCode());
            hash *= 19 + LifetimeContribution.GetHashCode();
            return(hash);
        }
示例#24
0
        public void EmailAddress_Integration_Serialization_Optimal()
        {
            String localPart = "Chad.Greer";
            String domain = "ParivedaSolutions.com";
            EmailAddress original = new EmailAddress(localPart, domain);

            EmailAddress clone = original.SerializeBinary();
            Assert.AreNotSame(original, clone);
            Assert.AreEqual(original, clone);
            Assert.AreEqual(original.GetHashCode(), clone.GetHashCode());
            Assert.AreEqual(original.LocalPart, clone.LocalPart);
            Assert.AreEqual(original.Domain, clone.Domain);
        }
示例#25
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);
        }
示例#26
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 (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (EmailAddress != null)
         {
             hashCode = hashCode * 59 + EmailAddress.GetHashCode();
         }
         if (FaxNumber != null)
         {
             hashCode = hashCode * 59 + FaxNumber.GetHashCode();
         }
         if (PhoneNumber != null)
         {
             hashCode = hashCode * 59 + PhoneNumber.GetHashCode();
         }
         if (PostCode != null)
         {
             hashCode = hashCode * 59 + PostCode.GetHashCode();
         }
         if (StateOrProvince != null)
         {
             hashCode = hashCode * 59 + StateOrProvince.GetHashCode();
         }
         if (Street1 != null)
         {
             hashCode = hashCode * 59 + Street1.GetHashCode();
         }
         if (Street2 != null)
         {
             hashCode = hashCode * 59 + Street2.GetHashCode();
         }
         if (MediumCharacteristicType != null)
         {
             hashCode = hashCode * 59 + MediumCharacteristicType.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#27
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 (BoletoBancarioRequiredness != null)
         {
             hashCode = hashCode * 59 + BoletoBancarioRequiredness.GetHashCode();
         }
         if (EmailAddress != null)
         {
             hashCode = hashCode * 59 + EmailAddress.GetHashCode();
         }
         if (ExpirationDate != null)
         {
             hashCode = hashCode * 59 + ExpirationDate.GetHashCode();
         }
         if (FixedList != null)
         {
             hashCode = hashCode * 59 + FixedList.GetHashCode();
         }
         if (Iban != null)
         {
             hashCode = hashCode * 59 + Iban.GetHashCode();
         }
         if (Length != null)
         {
             hashCode = hashCode * 59 + Length.GetHashCode();
         }
         if (Luhn != null)
         {
             hashCode = hashCode * 59 + Luhn.GetHashCode();
         }
         if (Range != null)
         {
             hashCode = hashCode * 59 + Range.GetHashCode();
         }
         if (RegularExpression != null)
         {
             hashCode = hashCode * 59 + RegularExpression.GetHashCode();
         }
         if (TermsAndConditions != null)
         {
             hashCode = hashCode * 59 + TermsAndConditions.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (EmailAddress != null)
         {
             hashCode = hashCode * 59 + EmailAddress.GetHashCode();
         }
         if (EmailMessageType != null)
         {
             hashCode = hashCode * 59 + EmailMessageType.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#29
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (_userId != null ? _userId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EmailAddress != null ? EmailAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Enabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (GivenName != null ? GivenName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Surname != null ? Surname.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UserCannotChangePassword.GetHashCode();
         hashCode = (hashCode * 397) ^ (UserPrincipalName != null ? UserPrincipalName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (VoiceTelephoneNumber != null ? VoiceTelephoneNumber.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#30
0
        public override int GetHashCode()
        {
            if (Id.Equals(Guid.Empty))
            {
                unchecked
                {
                    int result = this.Name.GetHashCode();
                    return((31 * result) ^ Id.GetHashCode());
                }
            }

            unchecked
            {
                int result = EmailAddress.GetHashCode();
                return((31 * result) ^ Id.GetHashCode());
            }
        }
        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);
        }
示例#32
0
        public void EmailAddress_Unit_GetHashCode_SameInstances()
        {
            String localPart = "Chad.Greer";
            String domain = "ParivedaSolutions.com";
            EmailAddress first = new EmailAddress(localPart, domain);
            EmailAddress second = first;

            Assert.AreEqual(first.GetHashCode(), second.GetHashCode());
        }
示例#33
0
        public void EmailAddress_Unit_GetHashCode_EquivalentInstances()
        {
            String localPart = "Chad.Greer";
            String domain = "ParivedaSolutions.com";
            EmailAddress first = new EmailAddress(localPart, domain);
            EmailAddress second = new EmailAddress(localPart.ToUpperInvariant(), domain.ToUpperInvariant());

            Assert.AreEqual(first.GetHashCode(), second.GetHashCode());
        }
示例#34
0
        public void EmailAddress_Unit_GetHashCode_DifferentLocalParts()
        {
            String localPart = "Chad.Greer";
            String domain = "ParivedaSolutions.com";
            EmailAddress first = new EmailAddress(localPart, domain);
            EmailAddress second = new EmailAddress(localPart + "Test", domain);

            Assert.AreNotEqual(first.GetHashCode(), second.GetHashCode());
        }