Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = LastDelivered.GetHashCode();
         hashCode = (hashCode * 397) ^ CumulativeAck.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 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));
 }