/// <summary> /// Returns true if ComAdobeGraniteRepositoryServiceUserConfigurationProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeGraniteRepositoryServiceUserConfigurationProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeGraniteRepositoryServiceUserConfigurationProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ServiceRanking == other.ServiceRanking || ServiceRanking != null && ServiceRanking.Equals(other.ServiceRanking) ) && ( ServiceusersSimpleSubjectPopulation == other.ServiceusersSimpleSubjectPopulation || ServiceusersSimpleSubjectPopulation != null && ServiceusersSimpleSubjectPopulation.Equals(other.ServiceusersSimpleSubjectPopulation) ) && ( ServiceusersList == other.ServiceusersList || ServiceusersList != null && ServiceusersList.Equals(other.ServiceusersList) )); }
/// <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 (ServiceRanking != null) { hashCode = hashCode * 59 + ServiceRanking.GetHashCode(); } if (ServiceusersSimpleSubjectPopulation != null) { hashCode = hashCode * 59 + ServiceusersSimpleSubjectPopulation.GetHashCode(); } if (ServiceusersList != null) { hashCode = hashCode * 59 + ServiceusersList.GetHashCode(); } return(hashCode); } }