Exemple #1
0
        public override int GetHashCode()
        {
            int hashCode = -126196706;

            if (CurbsideDetails != null)
            {
                hashCode += CurbsideDetails.GetHashCode();
            }

            if (BuyerArrivedAt != null)
            {
                hashCode += BuyerArrivedAt.GetHashCode();
            }

            return(hashCode);
        }
Exemple #2
0
        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)));
        }