public override int GetHashCode() { int hashCode = -126196706; if (CurbsideDetails != null) { hashCode += CurbsideDetails.GetHashCode(); } if (BuyerArrivedAt != null) { hashCode += BuyerArrivedAt.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is OrderFulfillmentPickupDetailsCurbsidePickupDetails other && ((CurbsideDetails == null && other.CurbsideDetails == null) || (CurbsideDetails?.Equals(other.CurbsideDetails) == true)) && ((BuyerArrivedAt == null && other.BuyerArrivedAt == null) || (BuyerArrivedAt?.Equals(other.BuyerArrivedAt) == true))); }