/// <summary> /// Returns true if AirlinePassenger instances are equal /// </summary> /// <param name="other">Instance of AirlinePassenger to be compared</param> /// <returns>Boolean</returns> public bool Equals(AirlinePassenger other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( FirstName == other.FirstName || FirstName != null && FirstName.Equals(other.FirstName) ) && ( Surname == other.Surname || Surname != null && Surname.Equals(other.Surname) ) && ( SurnamePrefix == other.SurnamePrefix || SurnamePrefix != null && SurnamePrefix.Equals(other.SurnamePrefix) ) && ( Title == other.Title || Title != null && Title.Equals(other.Title) )); }
/// <summary> /// Returns true if Debtor instances are equal /// </summary> /// <param name="other">Instance of Debtor to be compared</param> /// <returns>Boolean</returns> public bool Equals(Debtor other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AdditionalAddressInfo == other.AdditionalAddressInfo || AdditionalAddressInfo != null && AdditionalAddressInfo.Equals(other.AdditionalAddressInfo) ) && ( City == other.City || City != null && City.Equals(other.City) ) && ( CountryCode == other.CountryCode || CountryCode != null && CountryCode.Equals(other.CountryCode) ) && ( FirstName == other.FirstName || FirstName != null && FirstName.Equals(other.FirstName) ) && ( HouseNumber == other.HouseNumber || HouseNumber != null && HouseNumber.Equals(other.HouseNumber) ) && ( State == other.State || State != null && State.Equals(other.State) ) && ( StateCode == other.StateCode || StateCode != null && StateCode.Equals(other.StateCode) ) && ( Street == other.Street || Street != null && Street.Equals(other.Street) ) && ( Surname == other.Surname || Surname != null && Surname.Equals(other.Surname) ) && ( SurnamePrefix == other.SurnamePrefix || SurnamePrefix != null && SurnamePrefix.Equals(other.SurnamePrefix) ) && ( Zip == other.Zip || Zip != null && Zip.Equals(other.Zip) )); }