/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Applications != null) { hashCode = hashCode * 59 + Applications.GetHashCode(); } if (Roles != null) { hashCode = hashCode * 59 + Roles.GetHashCode(); } if (LdapAuthenticationModes != null) { hashCode = hashCode * 59 + LdapAuthenticationModes.GetHashCode(); } if (Users != null) { hashCode = hashCode * 59 + Users.GetHashCode(); } if (Teams != null) { hashCode = hashCode * 59 + Teams.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 (Clients != null) { hashCode = hashCode * 59 + Clients.GetHashCode(); } if (Applications != null) { hashCode = hashCode * 59 + Applications.GetHashCode(); } if (DefaultConfigurations != null) { hashCode = hashCode * 59 + DefaultConfigurations.GetHashCode(); } return(hashCode); } }