Example #1
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ HighWaterMark.GetHashCode();
         hashCode = (hashCode * 397) ^ (Messages?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Example #2
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer hash code.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash *= 23 + Name.GetHashCode();
         hash *= 23 + ArticleCount.GetHashCode();
         hash *= 23 + LowWaterMark.GetHashCode();
         hash *= 23 + HighWaterMark.GetHashCode();
         hash *= 23 + PostingStatus.GetHashCode();
         hash *= 23 + OtherGroup.GetHashCode();
         hash *= 23 + ArticleNumbers.GetHashCode();
         return(hash);
     }
 }