Exemplo n.º 1
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);
        }