/// <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 (Path != null) { hashCode = hashCode * 59 + Path.GetHashCode(); } if (ServiceRanking != null) { hashCode = hashCode * 59 + ServiceRanking.GetHashCode(); } if (IdpUrl != null) { hashCode = hashCode * 59 + IdpUrl.GetHashCode(); } if (IdpCertAlias != null) { hashCode = hashCode * 59 + IdpCertAlias.GetHashCode(); } if (IdpHttpRedirect != null) { hashCode = hashCode * 59 + IdpHttpRedirect.GetHashCode(); } if (ServiceProviderEntityId != null) { hashCode = hashCode * 59 + ServiceProviderEntityId.GetHashCode(); } if (AssertionConsumerServiceURL != null) { hashCode = hashCode * 59 + AssertionConsumerServiceURL.GetHashCode(); } if (SpPrivateKeyAlias != null) { hashCode = hashCode * 59 + SpPrivateKeyAlias.GetHashCode(); } if (KeyStorePassword != null) { hashCode = hashCode * 59 + KeyStorePassword.GetHashCode(); } if (DefaultRedirectUrl != null) { hashCode = hashCode * 59 + DefaultRedirectUrl.GetHashCode(); } if (UserIDAttribute != null) { hashCode = hashCode * 59 + UserIDAttribute.GetHashCode(); } if (UseEncryption != null) { hashCode = hashCode * 59 + UseEncryption.GetHashCode(); } if (CreateUser != null) { hashCode = hashCode * 59 + CreateUser.GetHashCode(); } if (AddGroupMemberships != null) { hashCode = hashCode * 59 + AddGroupMemberships.GetHashCode(); } if (GroupMembershipAttribute != null) { hashCode = hashCode * 59 + GroupMembershipAttribute.GetHashCode(); } if (DefaultGroups != null) { hashCode = hashCode * 59 + DefaultGroups.GetHashCode(); } if (NameIdFormat != null) { hashCode = hashCode * 59 + NameIdFormat.GetHashCode(); } if (SynchronizeAttributes != null) { hashCode = hashCode * 59 + SynchronizeAttributes.GetHashCode(); } if (HandleLogout != null) { hashCode = hashCode * 59 + HandleLogout.GetHashCode(); } if (LogoutUrl != null) { hashCode = hashCode * 59 + LogoutUrl.GetHashCode(); } if (ClockTolerance != null) { hashCode = hashCode * 59 + ClockTolerance.GetHashCode(); } if (DigestMethod != null) { hashCode = hashCode * 59 + DigestMethod.GetHashCode(); } if (SignatureMethod != null) { hashCode = hashCode * 59 + SignatureMethod.GetHashCode(); } if (UserIntermediatePath != null) { hashCode = hashCode * 59 + UserIntermediatePath.GetHashCode(); } return(hashCode); } }