コード例 #1
0
        /// <summary>
        /// Returns true if PersonalInfo instances are equal
        /// </summary>
        /// <param name="other">Instance of PersonalInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PersonalInfo other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     MaidenName == other.MaidenName ||
                     MaidenName != null &&
                     MaidenName.Equals(other.MaidenName)
                     ) &&
                 (
                     MaritalStatus == other.MaritalStatus ||
                     MaritalStatus != null &&
                     MaritalStatus.Equals(other.MaritalStatus)
                 ) &&
                 (
                     AdditionalID == other.AdditionalID ||
                     AdditionalID != null &&
                     AdditionalID.Equals(other.AdditionalID)
                 ) &&
                 (
                     PlaceOfBirth == other.PlaceOfBirth ||
                     PlaceOfBirth != null &&
                     PlaceOfBirth.Equals(other.PlaceOfBirth)
                 ) &&
                 (
                     Nationality == other.Nationality ||
                     Nationality != null &&
                     Nationality.Equals(other.Nationality)
                 ) &&
                 (
                     EthnicOrigin == other.EthnicOrigin ||
                     EthnicOrigin != null &&
                     EthnicOrigin.Equals(other.EthnicOrigin)
                 ) &&
                 (
                     VisaRequired == other.VisaRequired ||
                     VisaRequired != null &&
                     VisaRequired.Equals(other.VisaRequired)
                 ) &&
                 (
                     DisabledNo == other.DisabledNo ||
                     DisabledNo != null &&
                     DisabledNo.Equals(other.DisabledNo)
                 ) &&
                 (
                     Disability == other.Disability ||
                     Disability != null &&
                     Disability.Equals(other.Disability)
                 ));
        }
コード例 #2
0
        /// <summary>
        /// Returns true if UserDetailsInfo instances are equal
        /// </summary>
        /// <param name="other">Instance of UserDetailsInfo to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(UserDetailsInfo other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                     ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     DateOfBirth == other.DateOfBirth ||
                     DateOfBirth != null &&
                     DateOfBirth.Equals(other.DateOfBirth)
                 ) &&
                 (
                     PlaceOfBirth == other.PlaceOfBirth ||
                     PlaceOfBirth != null &&
                     PlaceOfBirth.Equals(other.PlaceOfBirth)
                 ) &&
                 (
                     NationalIdNumber == other.NationalIdNumber ||
                     NationalIdNumber != null &&
                     NationalIdNumber.Equals(other.NationalIdNumber)
                 ) &&
                 (
                     NationalIdType == other.NationalIdType ||
                     NationalIdType != null &&
                     NationalIdType.Equals(other.NationalIdType)
                 ) &&
                 (
                     PrimaryCitizenshipId == other.PrimaryCitizenshipId ||
                     PrimaryCitizenshipId != null &&
                     PrimaryCitizenshipId.Equals(other.PrimaryCitizenshipId)
                 ) &&
                 (
                     PrimaryAddressId == other.PrimaryAddressId ||
                     PrimaryAddressId != null &&
                     PrimaryAddressId.Equals(other.PrimaryAddressId)
                 ));
        }
コード例 #3
0
        /// <summary>
        /// Returns true if SessionsModel3 instances are equal
        /// </summary>
        /// <param name="other">Instance of SessionsModel3 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SessionsModel3 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FirstName == other.FirstName ||
                     FirstName != null &&
                     FirstName.Equals(other.FirstName)
                     ) &&
                 (
                     LastName == other.LastName ||
                     LastName != null &&
                     LastName.Equals(other.LastName)
                 ) &&
                 (
                     DateOfBirth == other.DateOfBirth ||
                     DateOfBirth != null &&
                     DateOfBirth.Equals(other.DateOfBirth)
                 ) &&
                 (
                     PlaceOfBirth == other.PlaceOfBirth ||
                     PlaceOfBirth != null &&
                     PlaceOfBirth.Equals(other.PlaceOfBirth)
                 ) &&
                 (
                     NationalIdNumber == other.NationalIdNumber ||
                     NationalIdNumber != null &&
                     NationalIdNumber.Equals(other.NationalIdNumber)
                 ) &&
                 (
                     NationalIdType == other.NationalIdType ||
                     NationalIdType != null &&
                     NationalIdType.Equals(other.NationalIdType)
                 ));
        }
コード例 #4
0
        /// <summary>
        /// Returns true if Individual instances are equal
        /// </summary>
        /// <param name="other">Instance of Individual to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Individual other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     GivenName == other.GivenName ||
                     GivenName != null &&
                     GivenName.Equals(other.GivenName)
                 ) &&
                 (
                     FamilyName == other.FamilyName ||
                     FamilyName != null &&
                     FamilyName.Equals(other.FamilyName)
                 ) &&
                 (
                     MiddleName == other.MiddleName ||
                     MiddleName != null &&
                     MiddleName.Equals(other.MiddleName)
                 ) &&
                 (
                     Href == other.Href ||
                     Href != null &&
                     Href.Equals(other.Href)
                 ) &&
                 (
                     Gender == other.Gender ||
                     Gender != null &&
                     Gender.Equals(other.Gender)
                 ) &&
                 (
                     PlaceOfBirth == other.PlaceOfBirth ||
                     PlaceOfBirth != null &&
                     PlaceOfBirth.Equals(other.PlaceOfBirth)
                 ) &&
                 (
                     CountryOfBirth == other.CountryOfBirth ||
                     CountryOfBirth != null &&
                     CountryOfBirth.Equals(other.CountryOfBirth)
                 ) &&
                 (
                     Nationality == other.Nationality ||
                     Nationality != null &&
                     Nationality.Equals(other.Nationality)
                 ) &&
                 (
                     MaritalStatus == other.MaritalStatus ||
                     MaritalStatus != null &&
                     MaritalStatus.Equals(other.MaritalStatus)
                 ) &&
                 (
                     BirthDate == other.BirthDate ||
                     BirthDate != null &&
                     BirthDate.Equals(other.BirthDate)
                 ) &&
                 (
                     FullName == other.FullName ||
                     FullName != null &&
                     FullName.Equals(other.FullName)
                 ) &&
                 (
                     FormattedName == other.FormattedName ||
                     FormattedName != null &&
                     FormattedName.Equals(other.FormattedName)
                 ) &&
                 (
                     Location == other.Location ||
                     Location != null &&
                     Location.Equals(other.Location)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ));
        }