public override int GetHashCode() { int hash = 1; if (issueDate_ != null) { hash ^= IssueDate.GetHashCode(); } if (supplier_ != null) { hash ^= Supplier.GetHashCode(); } if (CustomerRef.Length != 0) { hash ^= CustomerRef.GetHashCode(); } if (Text.Length != 0) { hash ^= Text.GetHashCode(); } if (Currency.Length != 0) { hash ^= Currency.GetHashCode(); } if (Total != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Total); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Message?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (IssueDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RefRevision?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (RefGUID?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Issuer?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IssueDate.GetHashCode(); hashCode = (hashCode * 397) ^ DueDate.GetHashCode(); hashCode = (hashCode * 397) ^ RedemptionDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Items != null ? Items.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Payments != null ? Payments.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Supplier != null ? Supplier.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Receiver != null ? Receiver.GetHashCode() : 0); 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 (AgentNumericCode != null) { hashCode = hashCode * 59 + AgentNumericCode.GetHashCode(); } if (Code != null) { hashCode = hashCode * 59 + Code.GetHashCode(); } if (FlightDate != null) { hashCode = hashCode * 59 + FlightDate.GetHashCode(); } if (FlightLegs != null) { hashCode = hashCode * 59 + FlightLegs.GetHashCode(); } if (InvoiceNumber != null) { hashCode = hashCode * 59 + InvoiceNumber.GetHashCode(); } if (IsETicket != null) { hashCode = hashCode * 59 + IsETicket.GetHashCode(); } if (IsRegisteredCustomer != null) { hashCode = hashCode * 59 + IsRegisteredCustomer.GetHashCode(); } if (IsRestrictedTicket != null) { hashCode = hashCode * 59 + IsRestrictedTicket.GetHashCode(); } if (IsThirdParty != null) { hashCode = hashCode * 59 + IsThirdParty.GetHashCode(); } if (IssueDate != null) { hashCode = hashCode * 59 + IssueDate.GetHashCode(); } if (MerchantCustomerId != null) { hashCode = hashCode * 59 + MerchantCustomerId.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (PassengerName != null) { hashCode = hashCode * 59 + PassengerName.GetHashCode(); } if (Passengers != null) { hashCode = hashCode * 59 + Passengers.GetHashCode(); } if (PlaceOfIssue != null) { hashCode = hashCode * 59 + PlaceOfIssue.GetHashCode(); } if (Pnr != null) { hashCode = hashCode * 59 + Pnr.GetHashCode(); } if (PointOfSale != null) { hashCode = hashCode * 59 + PointOfSale.GetHashCode(); } if (PosCityCode != null) { hashCode = hashCode * 59 + PosCityCode.GetHashCode(); } if (TicketDeliveryMethod != null) { hashCode = hashCode * 59 + TicketDeliveryMethod.GetHashCode(); } if (TicketNumber != null) { hashCode = hashCode * 59 + TicketNumber.GetHashCode(); } if (TotalFare != null) { hashCode = hashCode * 59 + TotalFare.GetHashCode(); } if (TotalFee != null) { hashCode = hashCode * 59 + TotalFee.GetHashCode(); } if (TotalTaxes != null) { hashCode = hashCode * 59 + TotalTaxes.GetHashCode(); } if (TravelAgencyName != null) { hashCode = hashCode * 59 + TravelAgencyName.GetHashCode(); } return(hashCode); } }