/// <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 (Uuid != null) { hashCode = hashCode * 59 + Uuid.GetHashCode(); } if (AgreementName != null) { hashCode = hashCode * 59 + AgreementName.GetHashCode(); } if (Version != null) { hashCode = hashCode * 59 + Version.GetHashCode(); } if (TeamIds != null) { hashCode = hashCode * 59 + TeamIds.GetHashCode(); } if (AcceptedUserIds != null) { hashCode = hashCode * 59 + AcceptedUserIds.GetHashCode(); } if (SubRealmId != null) { hashCode = hashCode * 59 + SubRealmId.GetHashCode(); } 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 (Uuid != null) { hashCode = hashCode * 59 + Uuid.GetHashCode(); } if (AgreementName != null) { hashCode = hashCode * 59 + AgreementName.GetHashCode(); } if (AgreementFileData != null) { hashCode = hashCode * 59 + AgreementFileData.GetHashCode(); } hashCode = hashCode * 59 + AutoUpdate.GetHashCode(); if (SubRealmId != null) { hashCode = hashCode * 59 + SubRealmId.GetHashCode(); } return(hashCode); } }