public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ (TransactionId != null ? TransactionId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ChargeStatus != null ? ChargeStatus.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PaymentProcessor != null ? PaymentProcessor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ AddressIsActive.GetHashCode(); hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ChargeId.GetHashCode(); hashCode = (hashCode * 397) ^ AddressId.GetHashCode(); hashCode = (hashCode * 397) ^ (ShopifyId != null ? ShopifyId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShopifyOrderId != null ? ShopifyOrderId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ShopifyOrderNumber.GetHashCode(); hashCode = (hashCode * 397) ^ (ShopifyCartToken != null ? ShopifyCartToken.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ShippingDate.GetHashCode(); hashCode = (hashCode * 397) ^ ScheduledAt.GetHashCode(); hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode(); hashCode = (hashCode * 397) ^ ProcessedAt.GetHashCode(); hashCode = (hashCode * 397) ^ CustomerId.GetHashCode(); hashCode = (hashCode * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Hash != null ? Hash.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsPrepaid.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode(); hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TotalPrice != null ? TotalPrice.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShippingAddress != null ? ShippingAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BillingAddress != null ? BillingAddress.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (CustomerId != null ? CustomerId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ EmployeeId; hashCode = (hashCode * 397) ^ OrderDate.GetHashCode(); hashCode = (hashCode * 397) ^ RequiredDate.GetHashCode(); hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode(); hashCode = (hashCode * 397) ^ ShipVia.GetHashCode(); hashCode = (hashCode * 397) ^ Freight.GetHashCode(); hashCode = (hashCode * 397) ^ (ShipName != null ? ShipName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipAddress != null ? ShipAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipCity != null ? ShipCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipRegion != null ? ShipRegion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipPostalCode != null ? ShipPostalCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipCountry != null ? ShipCountry.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (Customer != null ? Customer.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Employee != null ? Employee.GetHashCode() : 0); hashCode = (hashCode * 397) ^ OrderDate.GetHashCode(); hashCode = (hashCode * 397) ^ RequiredDate.GetHashCode(); hashCode = (hashCode * 397) ^ ShippedDate.GetHashCode(); hashCode = (hashCode * 397) ^ ShipVia.GetHashCode(); hashCode = (hashCode * 397) ^ Freight.GetHashCode(); hashCode = (hashCode * 397) ^ (ShipName != null ? ShipName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipAddress != null ? ShipAddress.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipCity != null ? ShipCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipRegion != null ? ShipRegion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipPostalCode != null ? ShipPostalCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ShipCountry != null ? ShipCountry.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (OrderDetails != null ? OrderDetails.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IntIds != null ? IntIds.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CharMap != null ? CharMap.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (OrderID != 0) { hash ^= OrderID.GetHashCode(); } if (CustomerID.Length != 0) { hash ^= CustomerID.GetHashCode(); } if (EmployeeID != 0) { hash ^= EmployeeID.GetHashCode(); } if (orderDate_ != null) { hash ^= OrderDate.GetHashCode(); } if (requiredDate_ != null) { hash ^= RequiredDate.GetHashCode(); } if (shippedDate_ != null) { hash ^= ShippedDate.GetHashCode(); } if (ShipVia != 0) { hash ^= ShipVia.GetHashCode(); } if (Freight != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Freight); } if (ShipName.Length != 0) { hash ^= ShipName.GetHashCode(); } if (ShipAddress.Length != 0) { hash ^= ShipAddress.GetHashCode(); } if (ShipCity.Length != 0) { hash ^= ShipCity.GetHashCode(); } if (ShipRegion.Length != 0) { hash ^= ShipRegion.GetHashCode(); } if (ShipPostalCode.Length != 0) { hash ^= ShipPostalCode.GetHashCode(); } if (ShipCountry.Length != 0) { hash ^= ShipCountry.GetHashCode(); } hash ^= lines_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }