public override int GetHashCode() { unchecked { var hashCode = LastDelivered.GetHashCode(); hashCode = (hashCode * 397) ^ CumulativeAck.GetHashCode(); return(hashCode); } }
public bool Equals(AckedReceiveBuffer <T> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(LastDelivered.Equals(other.LastDelivered) && CumulativeAck.Equals(other.CumulativeAck)); }