public override int GetHashCode() { return(HashCodeHelper.GetHashCode( Limited.GetHashCode(), MaxLimit.GetHashCode(), Remaining.GetHashCode(), ResetAfter.GetHashCode(), RetryAfter.GetHashCode())); }
public override int GetHashCode() { unchecked { var hashCode = (WorkCell != null ? WorkCell.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WorkUnit != null ? WorkUnit.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Actual.GetHashCode(); hashCode = (hashCode * 397) ^ Remaining.GetHashCode(); hashCode = (hashCode * 397) ^ Set.GetHashCode(); hashCode = (hashCode * 397) ^ OverflowRemaining.GetHashCode(); hashCode = (hashCode * 397) ^ OverflowSet.GetHashCode(); hashCode = (hashCode * 397) ^ (RuleName != null ? RuleName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RuleType != null ? RuleType.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Total != null) { hashCode = hashCode * 59 + Total.GetHashCode(); } if (Default != null) { hashCode = hashCode * 59 + Default.GetHashCode(); } if (Missed != null) { hashCode = hashCode * 59 + Missed.GetHashCode(); } if (Broken != null) { hashCode = hashCode * 59 + Broken.GetHashCode(); } if (Active != null) { hashCode = hashCode * 59 + Active.GetHashCode(); } if (Remaining != null) { hashCode = hashCode * 59 + Remaining.GetHashCode(); } if (Research != null) { hashCode = hashCode * 59 + Research.GetHashCode(); } if (Transferred != null) { hashCode = hashCode * 59 + Transferred.GetHashCode(); } return(hashCode); } }